C# Класс MixinRefactoring.CreateMixinFromInterfaceCommand

A composite command that includes a mixin to a child class by generating the mixin from an interface of the child class. A reference field to the mixin instance will also be created in the child class.
Наследование: CompositeCommand
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CanExecute ( ClassWithSourceCode childClass, Settings settings = null ) : bool
CreateMixinFromInterfaceCommand ( MixinReference mixin ) : Microsoft.CodeAnalysis

constructor that takes a mixin directly. Can be used for testing.

CreateMixinFromInterfaceCommand ( SimpleBaseTypeSyntax baseType, Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis

Защищенные методы

Метод Описание
CreateCommands ( MixinReference mixin ) : IMixinCommand[]

Описание методов

CanExecute() публичный Метод

public CanExecute ( ClassWithSourceCode childClass, Settings settings = null ) : bool
childClass ClassWithSourceCode
settings Settings
Результат bool

CreateCommands() защищенный Метод

protected CreateCommands ( MixinReference mixin ) : IMixinCommand[]
mixin MixinReference
Результат IMixinCommand[]

CreateMixinFromInterfaceCommand() публичный Метод

constructor that takes a mixin directly. Can be used for testing.
public CreateMixinFromInterfaceCommand ( MixinReference mixin ) : Microsoft.CodeAnalysis
mixin MixinReference reference to the mixin
Результат Microsoft.CodeAnalysis

CreateMixinFromInterfaceCommand() публичный Метод

public CreateMixinFromInterfaceCommand ( SimpleBaseTypeSyntax baseType, Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
baseType SimpleBaseTypeSyntax
semantic Microsoft.CodeAnalysis.SemanticModel
Результат Microsoft.CodeAnalysis