Skip to content

Commit 162a50c

Browse files
Add CSHARPSRC Language (#1750)
For the open-source CSHARPSRC language frontend.
1 parent f6ea610 commit 162a50c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

  • domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated
  • schema/src/main/scala/io/shiftleft/codepropertygraph/schema

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Languages.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public class Languages {
6262
/** Source-based frontend for Swift */
6363
public static final String SWIFTSRC = "SWIFTSRC";
6464

65+
/** Source-based frontend for C# and .NET */
66+
public static final String CSHARPSRC = "CSHARPSRC";
67+
6568

6669
public static Set<String> ALL = new HashSet<String>() {{
6770
add(JAVA);
@@ -82,6 +85,7 @@ public class Languages {
8285
add(SOLIDITY);
8386
add(RUBYSRC);
8487
add(SWIFTSRC);
88+
add(CSHARPSRC);
8589
}};
8690

8791
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ object MetaData extends SchemaBase {
135135
value = "SWIFTSRC",
136136
valueType = ValueType.String,
137137
comment = "Source-based frontend for Swift"
138-
).protoId(18)
138+
).protoId(18),
139+
Constant(
140+
name = "CSHARPSRC",
141+
value = "CSHARPSRC",
142+
valueType = ValueType.String,
143+
comment = "Source-based frontend for C# and .NET"
144+
).protoId(19)
139145
)
140146
}
141147
}

0 commit comments

Comments
 (0)