Skip to content

Commit c9b263f

Browse files
committed
Add RUST language
1 parent e664244 commit c9b263f

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

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 C# and .NET */
6363
public static final String CSHARPSRC = "CSHARPSRC";
6464

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

8791
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ object MetaData extends SchemaBase {
138138
value = "CSHARPSRC",
139139
valueType = ValueType.String,
140140
comment = "Source-based frontend for C# and .NET"
141-
).protoId(ProtoIds.CSharpSrc)
141+
).protoId(ProtoIds.CSharpSrc),
142+
Constant(name = "RUST", value = "RUST", valueType = ValueType.String, comment = "").protoId(ProtoIds.Rust)
142143
)
143144
}
144145
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ object ProtoIds {
8383
val Language = 19
8484
val CSharpSrc = 19
8585
val ABAP = 20
86+
val Rust = 21
8687
val Content = 20
8788
val Code = 21
8889
val EvalType = 21

0 commit comments

Comments
 (0)