Property | Type | Description | |
---|---|---|---|
_mixin |
Method | Description | |
---|---|---|
CanExecute ( |
called to check if the command can be executed.
|
|
Execute ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax childDeclaration, Microsoft.CodeAnalysis.SemanticModel semantic, |
Template method that checks if command can be executed and if yes, executes the command. Otherwise the original source code of the child is returned.
|
Method | Description | |
---|---|---|
InternalExecute ( |
executes the command on the given child class. Logic of command execution must be implemented in derived classes.
|
|
MixinCommandBase ( |
initializes the base fields of the command object
|
public abstract CanExecute ( |
||
childClass | ||
settings | optional settings | |
return | bool |
public Execute ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax childDeclaration, Microsoft.CodeAnalysis.SemanticModel semantic, |
||
childDeclaration | Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax | |
semantic | Microsoft.CodeAnalysis.SemanticModel | semantic model of the child's and mixin's source code |
settings | optional settings object | |
return | Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax |
protected abstract InternalExecute ( |
||
childClass | ||
semantic | Microsoft.CodeAnalysis.SemanticModel | semantic model of the child's and mixin's source code |
settings | optional settings object | |
return | Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax |
protected MixinCommandBase ( |
||
mixin | mixin that should be added to the child class | |
return | Microsoft.CodeAnalysis |