C# Class 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.
Inheritance: CompositeCommand
Afficher le fichier Open project: pgenfer/mixinSharp Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
CreateCommands ( MixinReference mixin ) : IMixinCommand[]

Method Details

CanExecute() public méthode

public CanExecute ( ClassWithSourceCode childClass, Settings settings = null ) : bool
childClass ClassWithSourceCode
settings Settings
Résultat bool

CreateCommands() protected méthode

protected CreateCommands ( MixinReference mixin ) : IMixinCommand[]
mixin MixinReference
Résultat IMixinCommand[]

CreateMixinFromInterfaceCommand() public méthode

constructor that takes a mixin directly. Can be used for testing.
public CreateMixinFromInterfaceCommand ( MixinReference mixin ) : Microsoft.CodeAnalysis
mixin MixinReference reference to the mixin
Résultat Microsoft.CodeAnalysis

CreateMixinFromInterfaceCommand() public méthode

public CreateMixinFromInterfaceCommand ( SimpleBaseTypeSyntax baseType, Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
baseType SimpleBaseTypeSyntax
semantic Microsoft.CodeAnalysis.SemanticModel
Résultat Microsoft.CodeAnalysis