File tree Expand file tree Collapse file tree
domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated
schema/src/main/scala/io/shiftleft/codepropertygraph/schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ public class ModifierTypes {
4444/** Indicate that a method defines a module in the sense e.g. a python module does with the creation of a module object */
4545public static final String MODULE = "MODULE" ;
4646
47+ /** Indicate that a method is an anonymous function, lambda, or closure */
48+ public static final String LAMBDA = "LAMBDA" ;
49+
4750
4851public static Set <String > ALL = new HashSet <String >() {{
4952add (STATIC );
@@ -58,6 +61,7 @@ public class ModifierTypes {
5861add (FINAL );
5962add (READONLY );
6063add (MODULE );
64+ add (LAMBDA );
6165}};
6266
6367}
Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ object Ast extends SchemaBase {
4747 fs : FileSystem .Schema
4848 ) {
4949 implicit private val schemaInfo : SchemaInfo = SchemaInfo .forClass(getClass)
50- import methodSchema . _
51- import base . _
52- import namespaces . _
53- import typeSchema . _
54- import fs . _
50+ import base . *
51+ import fs . *
52+ import methodSchema . *
53+ import namespaces . *
54+ import typeSchema . *
5555
5656 // Base types
5757
@@ -239,7 +239,14 @@ object Ast extends SchemaBase {
239239 comment =
240240 " Indicate that a method defines a module in the sense e.g. a python module does with the creation of a module object"
241241 )
242- .protoId(12 )
242+ .protoId(12 ),
243+ Constant (
244+ name = " LAMBDA" ,
245+ value = " LAMBDA" ,
246+ valueType = ValueType .String ,
247+ comment = " Indicate that a method is an anonymous function, lambda, or closure"
248+ )
249+ .protoId(13 )
243250 )
244251
245252 val modifier : NodeType = builder
You can’t perform that action at this time.
0 commit comments