Class: SnippetParser
vendor/snippet/snippetParser.SnippetParser
Constructors
constructor
• new SnippetParser()
Properties
_scanner
• Private
_scanner: Scanner
Defined in
vendor/snippet/snippetParser.ts:613
_token
• Private
_token: Token
Defined in
vendor/snippet/snippetParser.ts:614
Methods
_accept
▸ Private
_accept(type?
): boolean
Parameters
Name | Type |
---|---|
type? | TokenType |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:673
▸ Private
_accept(type
, value
): string
Parameters
Name | Type |
---|---|
type | undefined | TokenType |
value | true |
Returns
string
Defined in
vendor/snippet/snippetParser.ts:674
_backTo
▸ Private
_backTo(token
): false
Parameters
Name | Type |
---|---|
token | Token |
Returns
false
Defined in
vendor/snippet/snippetParser.ts:684
_parse
▸ Private
_parse(marker
): boolean
Parameters
Name | Type |
---|---|
marker | Marker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:710
_parseAnything
▸ Private
_parseAnything(marker
): boolean
Parameters
Name | Type |
---|---|
marker | Marker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:1075
_parseChoiceElement
▸ Private
_parseChoiceElement(parent
): boolean
Parameters
Name | Type |
---|---|
parent | Choice |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:832
_parseComplexPlaceholder
▸ Private
_parseComplexPlaceholder(parent
): boolean
Parameters
Name | Type |
---|---|
parent | Marker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:753
_parseComplexVariable
▸ Private
_parseComplexVariable(parent
): boolean
Parameters
Name | Type |
---|---|
parent | Marker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:868
_parseEscaped
▸ Private
_parseEscaped(marker
): boolean
Parameters
Name | Type |
---|---|
marker | Marker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:719
_parseFormatString
▸ Private
_parseFormatString(parent
): boolean
Parameters
Name | Type |
---|---|
parent | Transform |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:991
_parseTabstopOrVariableName
▸ Private
_parseTabstopOrVariableName(parent
): boolean
Parameters
Name | Type |
---|---|
parent | Marker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:735
_parseTransform
▸ Private
_parseTransform(parent
): boolean
Parameters
Name | Type |
---|---|
parent | TransformableMarker |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:922
_until
▸ Private
_until(type
): string
| false
Parameters
Name | Type |
---|---|
type | TokenType |
Returns
string
| false
Defined in
vendor/snippet/snippetParser.ts:690
parse
▸ parse(value
, insertFinalTabstop?
, enforceFinalTabstop?
): TextmateSnippet
Parameters
Name | Type |
---|---|
value | string |
insertFinalTabstop? | boolean |
enforceFinalTabstop? | boolean |
Returns
Defined in
vendor/snippet/snippetParser.ts:620
text
▸ text(value
): string
Parameters
Name | Type |
---|---|
value | string |
Returns
string
Defined in
vendor/snippet/snippetParser.ts:616
escape
▸ Static
escape(value
): string
Parameters
Name | Type |
---|---|
value | string |
Returns
string
Defined in
vendor/snippet/snippetParser.ts:605
guessNeedsClipboard
▸ Static
guessNeedsClipboard(template
): boolean
Parameters
Name | Type |
---|---|
template | string |
Returns
boolean
Defined in
vendor/snippet/snippetParser.ts:609