Skip to main content

Class: InsertSnippet

actions/InsertSnippet.InsertSnippet

Implements

Constructors

constructor

new InsertSnippet(graph)

Parameters

NameType
graphGraph

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

NameType
snippetNamestring

Returns

ModifyIfUntypedStage[]

Implementation of

Action.getPrePositionStages

Defined in

actions/InsertSnippet.ts:22


run

run(__namedParameters, snippetName, substitutions): Promise<ActionReturnValue>

Parameters

NameType
__namedParameters[Target[]]
snippetNamestring
substitutionsRecord<string, string>

Returns

Promise<ActionReturnValue>

Implementation of

Action.run

Defined in

actions/InsertSnippet.ts:51