Class FixedWidthTokenWithLeadingAndTrailingTrivia

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(fullText: string, kind: SyntaxKind, leadingTriviaInfo: number, trailingTriviaInfo: number): FixedWidthTokenWithLeadingAndTrailingTrivia

Parameters

  • fullText: string
  • kind: SyntaxKind
  • leadingTriviaInfo: number
  • trailingTriviaInfo: number

Returns

FixedWidthTokenWithLeadingAndTrailingTrivia

Properties

private _fullText: any

private _leadingTriviaInfo: any

private _trailingTriviaInfo: any

public tokenKind: SyntaxKind

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 clone(): ISyntaxToken

Returns

ISyntaxToken

public collectTextElements(elements: Array<string>)

Parameters

  • elements: Array<string>

private findTokenInternal(parent: any, position: any, fullStart: any): any

Parameters

  • parent: any
  • position: any
  • fullStart: any

Returns

any

public firstToken(): ISyntaxToken

Returns

ISyntaxToken

public fullText(): string

Returns

string

public fullWidth(): number

Returns

number

public hasLeadingComment(): boolean

Returns

boolean

public hasLeadingNewLine(): boolean

Returns

boolean

public hasLeadingSkippedText(): boolean

Returns

boolean

public hasLeadingTrivia(): boolean

Returns

boolean

public hasSkippedToken(): boolean

Returns

boolean

public hasTrailingComment(): boolean

Returns

boolean

public hasTrailingNewLine(): boolean

Returns

boolean

public hasTrailingSkippedText(): boolean

Returns

boolean

public hasTrailingTrivia(): boolean

Returns

boolean

public isExpression(): boolean

Returns

boolean

public isIncrementallyUnusable(): boolean

Returns

boolean

public isList(): boolean

Returns

boolean

public isMemberExpression(): boolean

Returns

boolean

public isNode(): boolean

Returns

boolean

public isPostfixExpression(): boolean

Returns

boolean

public isPrimaryExpression(): boolean

Returns

boolean

public isSeparatedList(): boolean

Returns

boolean

public isToken(): boolean

Returns

boolean

public isTypeScriptSpecific(): boolean

Returns

boolean

public isUnaryExpression(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

public lastToken(): ISyntaxToken

Returns

ISyntaxToken

public leadingTrivia(): ISyntaxTriviaList

Returns

ISyntaxTriviaList

public leadingTriviaWidth(): number

Returns

number

private realize(): any

Returns

any

public text(): string

Returns

string

public toJSON(key: any): any

Parameters

  • key: any

Returns

any

public trailingTrivia(): ISyntaxTriviaList

Returns

ISyntaxTriviaList

public trailingTriviaWidth(): number

Returns

number

public value(): any

Returns

any

public valueText(): string

Returns

string

public width(): number

Returns

number

public withLeadingTrivia(leadingTrivia: ISyntaxTriviaList): ISyntaxToken

Parameters

Returns

ISyntaxToken

public withTrailingTrivia(trailingTrivia: ISyntaxTriviaList): ISyntaxToken

Parameters

Returns

ISyntaxToken