Class: TextmateSnippet
vendor/snippet/snippetParser.TextmateSnippet
Hierarchy
↳
TextmateSnippet
Constructors
constructor
• new TextmateSnippet()
Inherited from
Properties
_children
• Protected
_children: Marker
[] = []
Inherited from
Defined in
vendor/snippet/snippetParser.ts:137
_markerBrand
• Readonly
_markerBrand: any
Inherited from
Defined in
vendor/snippet/snippetParser.ts:134
_placeholders
• Private
Optional
_placeholders: Object
Type declaration
Name | Type |
---|---|
all | Placeholder [] |
last? | Placeholder |
Defined in
vendor/snippet/snippetParser.ts:503
parent
• parent: Marker
Inherited from
Defined in
vendor/snippet/snippetParser.ts:136
Accessors
children
• get
children(): Marker
[]
Returns
Marker
[]
Inherited from
Marker.children
Defined in
vendor/snippet/snippetParser.ts:166
placeholderInfo
• get
placeholderInfo(): Object
Returns
Object
Name | Type |
---|---|
all | Placeholder [] |
last? | Placeholder |
Defined in
vendor/snippet/snippetParser.ts:505
placeholders
• get
placeholders(): Placeholder
[]
Returns
Defined in
vendor/snippet/snippetParser.ts:522
snippet
• get
snippet(): undefined
| TextmateSnippet
Returns
undefined
| TextmateSnippet
Inherited from
Marker.snippet
Defined in
vendor/snippet/snippetParser.ts:170
Methods
appendChild
▸ appendChild(child
): TextmateSnippet
Parameters
Name | Type |
---|---|
child | Marker |
Returns
Overrides
Defined in
vendor/snippet/snippetParser.ts:578
clone
▸ clone(): TextmateSnippet
Returns
Overrides
Defined in
vendor/snippet/snippetParser.ts:592
enclosingPlaceholders
▸ enclosingPlaceholders(placeholder
): Placeholder
[]
Parameters
Name | Type |
---|---|
placeholder | Placeholder |
Returns
Defined in
vendor/snippet/snippetParser.ts:554
fullLen
▸ fullLen(marker
): number
Parameters
Name | Type |
---|---|
marker | Marker |
Returns
number
Defined in
vendor/snippet/snippetParser.ts:545
len
▸ len(): number
Returns
number
Inherited from
Defined in
vendor/snippet/snippetParser.ts:189
offset
▸ offset(marker
): number
Parameters
Name | Type |
---|---|
marker | Marker |
Returns
number
Defined in
vendor/snippet/snippetParser.ts:527
replace
▸ replace(child
, others
): void
Parameters
Name | Type |
---|---|
child | Marker |
others | Marker [] |
Returns
void
Overrides
Defined in
vendor/snippet/snippetParser.ts:583
resolveVariables
▸ resolveVariables(resolver
): TextmateSnippet
Parameters
Name | Type |
---|---|
resolver | VariableResolver |
Returns
Defined in
vendor/snippet/snippetParser.ts:566
toString
▸ toString(): string
Returns
string
Inherited from
Defined in
vendor/snippet/snippetParser.ts:183
toTextmateString
▸ toTextmateString(): string
Returns
string
Overrides
Defined in
vendor/snippet/snippetParser.ts:588
walk
▸ walk(visitor
): void
Parameters
Name | Type |
---|---|
visitor | (marker : Marker ) => boolean |
Returns
void
Defined in
vendor/snippet/snippetParser.ts:598