C# Класс MixinRefactoring.IncludeMixinSyntaxWriter

class that generates the syntax nodes needed for forwarding member calls to the mixin reference.
Наследование: CSharpSyntaxRewriter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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