Class: InsertSnippet
actions/InsertSnippet.InsertSnippet
Implements
Constructors
constructor
• new InsertSnippet(graph)
Parameters
| Name | Type |
|---|---|
graph | Graph |
Defined in
actions/InsertSnippet.ts:47
Properties
snippetParser
• Private snippetParser: SnippetParser
Defined in
actions/InsertSnippet.ts:20
Methods
getPrePositionStages
▸ getPrePositionStages(snippetName): ModifyIfUntypedStage[]
Used to define stages that should be run before the final positional stage, if there is one
Parameters
| Name | Type |
|---|---|
snippetName | string |
Returns
Implementation of
Defined in
actions/InsertSnippet.ts:22
run
▸ run(__namedParameters, snippetName, substitutions): Promise<ActionReturnValue>
Parameters
| Name | Type |
|---|---|
__namedParameters | [Target[]] |
snippetName | string |
substitutions | Record<string, string> |
Returns
Promise<ActionReturnValue>
Implementation of
Defined in
actions/InsertSnippet.ts:51