Method | Description | |
---|---|---|
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 ( |
Method | Description | |
---|---|---|
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 | |
return | Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax |
public ExtendConstructorInitialization ( ConstructorInitializerSyntax oldConstructorInitializer ) : ConstructorInitializerSyntax | ||
oldConstructorInitializer | ConstructorInitializerSyntax | |
return | 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 |
return | Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax |
public InjectConstructorImplementationStrategy ( |
||
mixin | ||
semanticModel | Microsoft.CodeAnalysis.SemanticModel | |
positionInSourceFile | int | |
return | System.Collections.Generic |