Class: InsertEmptyLines
actions/InsertEmptyLines.internal.InsertEmptyLines
Hierarchy
InsertEmptyLines
Implements
Constructors
constructor
• new InsertEmptyLines(graph
, insertAbove
, insertBelow
)
Parameters
Name | Type |
---|---|
graph | Graph |
insertAbove | boolean |
insertBelow | boolean |
Defined in
actions/InsertEmptyLines.ts:12
Methods
getEdits
▸ Private
getEdits(ranges
): { range
: Range
; text
: string
= "\n" }[]
Parameters
Name | Type |
---|---|
ranges | Range [] |
Returns
{ range
: Range
; text
: string
= "\n" }[]
Defined in
actions/InsertEmptyLines.ts:37
getRanges
▸ Private
getRanges(targets
): Range
[]
Parameters
Name | Type |
---|---|
targets | Target [] |
Returns
Range
[]
Defined in
actions/InsertEmptyLines.ts:20
run
▸ run(__namedParameters
): Promise
<ActionReturnValue
>
Parameters
Name | Type |
---|---|
__namedParameters | [Target []] |
Returns
Promise
<ActionReturnValue
>
Implementation of
Defined in
actions/InsertEmptyLines.ts:44