Skip to content

Commit b6d97b0

Browse files
committed
C#: Also print the unsafe keyword for eg. classes when creating stubs.
1 parent 67e7b8f commit b6d97b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

csharp/ql/src/Stubs/Stubs.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ abstract private class GeneratedType extends Type, GeneratedElement {
132132
else (
133133
not this instanceof DelegateType and
134134
result =
135-
this.stubAttributes() + stubAccessibility(this) + this.stubAbstractModifier() +
136-
this.stubStaticModifier() + this.stubPartialModifier() + this.stubKeyword() + " " +
137-
this.getUndecoratedName() + stubGenericArguments(this) + this.stubBaseTypesString() +
138-
stubTypeParametersConstraints(this) + "\n{\n" + this.stubPrivateConstructor() +
139-
this.stubMembers(assembly) + "}\n\n"
135+
this.stubAttributes() + stubUnsafe(this) + stubAccessibility(this) +
136+
this.stubAbstractModifier() + this.stubStaticModifier() + this.stubPartialModifier() +
137+
this.stubKeyword() + " " + this.getUndecoratedName() + stubGenericArguments(this) +
138+
this.stubBaseTypesString() + stubTypeParametersConstraints(this) + "\n{\n" +
139+
this.stubPrivateConstructor() + this.stubMembers(assembly) + "}\n\n"
140140
or
141141
result =
142142
this.stubAttributes() + stubUnsafe(this) + stubAccessibility(this) + this.stubKeyword() +

0 commit comments

Comments
 (0)