Skip to content

Commit f47ba8a

Browse files
author
Johannes Coetzee
authored
Add yield control structure type (#1676)
1 parent 75bb125 commit f47ba8a

File tree

1 file changed

+3
-1
lines changed
  • schema/src/main/scala/io/shiftleft/codepropertygraph/schema

1 file changed

+3
-1
lines changed

schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Ast.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ object Ast extends SchemaBase {
350350
Constant(name = "THROW", value = "THROW", valueType = ValueType.String, comment = "Represents a throw statement")
351351
.protoId(11),
352352
Constant(name = "MATCH", value = "MATCH", valueType = ValueType.String, comment = "Represents a match expression")
353-
.protoId(12)
353+
.protoId(12),
354+
Constant(name = "YIELD", value = "YIELD", valueType = ValueType.String, comment = "Represents a yield expression")
355+
.protoId(13)
354356
)
355357

356358
val controlStructure: NodeType = builder

0 commit comments

Comments
 (0)