C# Class MixinRefactoring.CreateMixinFromFieldDeclarationCommand

Composite command that includes a mixin into a child class. A reference to the mixin is already defined as a field in the child class.
Inheritance: CompositeCommand
ファイルを表示 Open project: pgenfer/mixinSharp Class Usage Examples

Public Methods

Method Description
CreateMixinFromFieldDeclarationCommand ( Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax mixinFieldDeclaration, Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
CreateMixinFromFieldDeclarationCommand ( MixinReference mixin ) : Microsoft.CodeAnalysis

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

Protected Methods

Method Description
CreateCommands ( MixinReference mixin ) : IMixinCommand[]

Method Details

CreateCommands() protected method

protected CreateCommands ( MixinReference mixin ) : IMixinCommand[]
mixin MixinReference
return IMixinCommand[]

CreateMixinFromFieldDeclarationCommand() public method

public CreateMixinFromFieldDeclarationCommand ( Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax mixinFieldDeclaration, Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
mixinFieldDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax
semantic Microsoft.CodeAnalysis.SemanticModel
return Microsoft.CodeAnalysis

CreateMixinFromFieldDeclarationCommand() public method

constructor that takes a mixin directly. Can be used for testing
public CreateMixinFromFieldDeclarationCommand ( MixinReference mixin ) : Microsoft.CodeAnalysis
mixin MixinReference
return Microsoft.CodeAnalysis