Метод | Описание | |
---|---|---|
CreateNewConstructor ( string className ) : Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax | ||
ExtendConstructorInitialization ( ConstructorInitializerSyntax oldConstructorInitializer ) : ConstructorInitializerSyntax |
the constructor initializer will be extended so that it will accept the mixin as parameter. See rule 3 from above
|
|
ExtendExistingConstructor ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax oldConstructor ) : Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax |
if the child class already has a constructor, a new parameter will be added to the constructor
|
|
InjectConstructorImplementationStrategy ( |
Метод | Описание | |
---|---|---|
CreateAssigmentStatementForConstructorBody ( string parameterName ) : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax | ||
CreateConstructorParameterForMixin ( string parameterName ) : Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax |
public CreateNewConstructor ( string className ) : Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax | ||
className | string | |
Результат | Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax |
public ExtendConstructorInitialization ( ConstructorInitializerSyntax oldConstructorInitializer ) : ConstructorInitializerSyntax | ||
oldConstructorInitializer | ConstructorInitializerSyntax | |
Результат | ConstructorInitializerSyntax |
public ExtendExistingConstructor ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax oldConstructor ) : Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax | ||
oldConstructor | Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax | constructor to which /// we are going to add the new parameter |
Результат | Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax |
public InjectConstructorImplementationStrategy ( |
||
mixin | ||
semanticModel | Microsoft.CodeAnalysis.SemanticModel | |
positionInSourceFile | int | |
Результат | System.Collections.Generic |