Skip to content

Commit 284d88d

Browse files
committed
C#: Update stub generator query to explicit include enum constants.
1 parent d023f84 commit 284d88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/src/Stubs/Stubs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ pragma[noinline]
726726
private string stubEnumConstant(EnumConstant ec, Assembly assembly) {
727727
ec instanceof GeneratedMember and
728728
ec.getALocation() = assembly and
729-
result = " " + escapeIfKeyword(ec.getName()) + ",\n"
729+
result = " " + escapeIfKeyword(ec.getName()) + "=" + ec.getValue() + ",\n"
730730
}
731731

732732
pragma[noinline]

0 commit comments

Comments
 (0)