Class: InsertSnippet
actions/InsertSnippet.InsertSnippet
Implements
Constructors
constructor
• new InsertSnippet(graph
)
Parameters
Name | Type |
---|---|
graph | Graph |
Defined in
actions/InsertSnippet.ts:45
Properties
snippetParser
• Private
snippetParser: SnippetParser
Defined in
actions/InsertSnippet.ts:21
Methods
getPrePositionStages
▸ getPrePositionStages(snippetName
): ModifyIfUntypedExplicitStage
[]
Used to define stages that should be run before the final positional stage, if there is one
Parameters
Name | Type |
---|---|
snippetName | string |
Returns
ModifyIfUntypedExplicitStage
[]
Implementation of
Defined in
actions/InsertSnippet.ts:23
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:49