C# Class MixinRefactoring.ConstructorInjectionSyntaxWriter

extends a given class declaration by adding/extending constructors with an injected mixin instance
Inheritance: CSharpSyntaxRewriter
Mostrar archivo Open project: pgenfer/mixinSharp Class Usage Examples

Public Methods

Method Description
ConstructorInjectionSyntaxWriter ( MixinReference mixin, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : Microsoft.CodeAnalysis.SyntaxNode
VisitConstructorDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax node ) : Microsoft.CodeAnalysis.SyntaxNode
VisitConstructorInitializer ( ConstructorInitializerSyntax node ) : Microsoft.CodeAnalysis.SyntaxNode

Method Details

ConstructorInjectionSyntaxWriter() public method

public ConstructorInjectionSyntaxWriter ( MixinReference mixin, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
mixin MixinReference
semanticModel Microsoft.CodeAnalysis.SemanticModel
return System

VisitClassDeclaration() public method

public VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : Microsoft.CodeAnalysis.SyntaxNode
node Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
return Microsoft.CodeAnalysis.SyntaxNode

VisitConstructorDeclaration() public method

public VisitConstructorDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax node ) : Microsoft.CodeAnalysis.SyntaxNode
node Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax
return Microsoft.CodeAnalysis.SyntaxNode

VisitConstructorInitializer() public method

public VisitConstructorInitializer ( ConstructorInitializerSyntax node ) : Microsoft.CodeAnalysis.SyntaxNode
node ConstructorInitializerSyntax
return Microsoft.CodeAnalysis.SyntaxNode