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
파일 보기 프로젝트 열기: pgenfer/mixinSharp 1 사용 예제들

공개 메소드들

메소드 설명
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