Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff9412 commit f71d684Copy full SHA for f71d684
1 file changed
csharp/ql/src/Stubs/Stubs.qll
@@ -160,7 +160,7 @@ abstract private class GeneratedType extends Type, GeneratedElement {
160
161
private string stubBaseTypesString() {
162
if this instanceof Enum
163
- then result = ""
+ then result = " : " + this.(Enum).getUnderlyingType().toStringWithTypes()
164
else
165
if exists(this.getAnInterestingBaseType())
166
then
@@ -726,7 +726,7 @@ pragma[noinline]
726
private string stubEnumConstant(EnumConstant ec, Assembly assembly) {
727
ec instanceof GeneratedMember and
728
ec.getALocation() = assembly and
729
- result = " " + escapeIfKeyword(ec.getName()) + "=" + ec.getValue() + ",\n"
+ result = " " + escapeIfKeyword(ec.getName()) + " = " + ec.getValue() + ",\n"
730
}
731
732
pragma[noinline]
0 commit comments