Interface ISyntaxNodeOrToken

Hierarchy

Index

Methods

Methods

public accept(visitor: ISyntaxVisitor): any

Parameters

Returns

any

public childAt(index: number): ISyntaxElement

Parameters

  • index: number

Returns

ISyntaxElement

public childCount(): number

Returns

number

public collectTextElements(elements: Array<string>)

Parameters

  • elements: Array<string>

public firstToken(): ISyntaxToken

Returns

ISyntaxToken

public fullText(): string

Returns

string

public fullWidth(): number

Returns

number

public isIncrementallyUnusable(): boolean

Returns

boolean

public isList(): boolean

Returns

boolean

public isNode(): boolean

Returns

boolean

public isSeparatedList(): boolean

Returns

boolean

public isToken(): boolean

Returns

boolean

public isTypeScriptSpecific(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

public lastToken(): ISyntaxToken

Returns

ISyntaxToken

public leadingTrivia(): ISyntaxTriviaList

Returns

ISyntaxTriviaList

public leadingTriviaWidth(): number

Returns

number

public trailingTrivia(): ISyntaxTriviaList

Returns

ISyntaxTriviaList

public trailingTriviaWidth(): number

Returns

number

public width(): number

Returns

number

public withLeadingTrivia(leadingTrivia: ISyntaxTriviaList): ISyntaxNodeOrToken

Parameters

Returns

ISyntaxNodeOrToken

public withTrailingTrivia(trailingTrivia: ISyntaxTriviaList): ISyntaxNodeOrToken

Parameters

Returns

ISyntaxNodeOrToken