C#: Also print the unsafe keyword for eg. classes when creating stubs.

This commit is contained in:
Michael Nebel
2023-03-02 14:17:49 +01:00
parent 67e7b8fc23
commit b6d97b07bf

View File

@@ -132,11 +132,11 @@ abstract private class GeneratedType extends Type, GeneratedElement {
else (
not this instanceof DelegateType and
result =
this.stubAttributes() + stubAccessibility(this) + this.stubAbstractModifier() +
this.stubStaticModifier() + this.stubPartialModifier() + this.stubKeyword() + " " +
this.getUndecoratedName() + stubGenericArguments(this) + this.stubBaseTypesString() +
stubTypeParametersConstraints(this) + "\n{\n" + this.stubPrivateConstructor() +
this.stubMembers(assembly) + "}\n\n"
this.stubAttributes() + stubUnsafe(this) + stubAccessibility(this) +
this.stubAbstractModifier() + this.stubStaticModifier() + this.stubPartialModifier() +
this.stubKeyword() + " " + this.getUndecoratedName() + stubGenericArguments(this) +
this.stubBaseTypesString() + stubTypeParametersConstraints(this) + "\n{\n" +
this.stubPrivateConstructor() + this.stubMembers(assembly) + "}\n\n"
or
result =
this.stubAttributes() + stubUnsafe(this) + stubAccessibility(this) + this.stubKeyword() +