C# 클래스 MixinRefactoring.IncludeMixinSyntaxWriter

class that generates the syntax nodes needed for forwarding member calls to the mixin reference.
상속: CSharpSyntaxRewriter
파일 보기 프로젝트 열기: pgenfer/mixinSharp 1 사용 예제들

공개 메소드들

메소드 설명
IncludeMixinSyntaxWriter ( IEnumerable membersToImplement, MixinReference mixin, Microsoft.CodeAnalysis.SemanticModel semanticModel, Settings settings = null ) : Microsoft.CodeAnalysis.CSharp
VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration ) : Microsoft.CodeAnalysis.SyntaxNode

creates a new class declaration where members are delegated to the mixin reference

보호된 메소드들

메소드 설명
CreateStrategies ( MixinReference mixin, Microsoft.CodeAnalysis.SemanticModel semantic, Settings settings ) : IImplementMemberForwarding>.Dictionary

method is virtual, so derived classes can override it to create different strategies (e.g. for testing)

메소드 상세

CreateStrategies() 보호된 메소드

method is virtual, so derived classes can override it to create different strategies (e.g. for testing)
protected CreateStrategies ( MixinReference mixin, Microsoft.CodeAnalysis.SemanticModel semantic, Settings settings ) : IImplementMemberForwarding>.Dictionary
mixin MixinReference
semantic Microsoft.CodeAnalysis.SemanticModel
settings Settings
리턴 IImplementMemberForwarding>.Dictionary

IncludeMixinSyntaxWriter() 공개 메소드

public IncludeMixinSyntaxWriter ( IEnumerable membersToImplement, MixinReference mixin, Microsoft.CodeAnalysis.SemanticModel semanticModel, Settings settings = null ) : Microsoft.CodeAnalysis.CSharp
membersToImplement IEnumerable
mixin MixinReference
semanticModel Microsoft.CodeAnalysis.SemanticModel
settings Settings
리턴 Microsoft.CodeAnalysis.CSharp

VisitClassDeclaration() 공개 메소드

creates a new class declaration where members are delegated to the mixin reference
public VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration ) : Microsoft.CodeAnalysis.SyntaxNode
classDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
리턴 Microsoft.CodeAnalysis.SyntaxNode