Methods
public childCount(): number
Returns
number
public collectTextElements(elements: Array<string>)
Parameters
public findCompleteTokenOnLeft(position: number, includeSkippedTokens?: boolean): PositionedToken
Parameters
-
position: number
-
includeSkippedTokens?: boolean optional
Returns
PositionedToken
public findToken(position: number, includeSkippedTokens?: boolean): PositionedToken
Parameters
-
position: number
-
includeSkippedTokens?: boolean optional
Returns
PositionedToken
public findTokenOnLeft(position: number, includeSkippedTokens?: boolean): PositionedToken
Parameters
-
position: number
-
includeSkippedTokens?: boolean optional
Returns
PositionedToken
public fullText(): string
Returns
string
public fullWidth(): number
Returns
number
public hasLeadingTrivia(): boolean
Returns
boolean
public hasTrailingTrivia(): boolean
Returns
boolean
public insertChildrenInto(array: ISyntaxElement[], index: number)
Parameters
public isClassElement(): boolean
Returns
boolean
public isExpression(): boolean
Returns
boolean
public isIncrementallyUnusable(): boolean
Returns
boolean
public isList(): boolean
Returns
boolean
public isMemberExpression(): boolean
Returns
boolean
public isModuleElement(): boolean
Returns
boolean
public isNode(): boolean
Returns
boolean
public isPostfixExpression(): boolean
Returns
boolean
public isSeparatedList(): boolean
Returns
boolean
public isStatement(): boolean
Returns
boolean
public isSwitchClause(): boolean
Returns
boolean
public isToken(): boolean
Returns
boolean
public isTypeMember(): boolean
Returns
boolean
public isTypeScriptSpecific(): boolean
Returns
boolean
public isUnaryExpression(): boolean
Returns
boolean
public leadingTriviaWidth(): number
Returns
number
public parsedInStrictMode(): boolean
Returns
boolean
public structuralEquals(node: SyntaxNode): boolean
Parameters
Returns
boolean
public toJSON(key: any): any
Parameters
Returns
any
public trailingTriviaWidth(): number
Returns
number
public width(): number
Returns
number