mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C#: Also print the unsafe keyword for eg. classes when creating stubs.
This commit is contained in:
@@ -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() +
|
||||
|
||||
Reference in New Issue
Block a user