Module Syntax

Index

Variables

Interfaces

Classes

Functions

Variables

carriageReturnLineFeedTrivia: ISyntaxTrivia

carriageReturnTrivia: ISyntaxTrivia

emptyList: ISyntaxList

emptySeparatedList: ISeparatedSyntaxList

emptyTriviaList: ISyntaxTriviaList

lineFeedTrivia: ISyntaxTrivia

normalModeFactory: IFactory

spaceTrivia: ISyntaxTrivia

spaceTriviaList: ISyntaxTriviaList

strictModeFactory: IFactory

Functions

assignmentExpression(left: IExpressionSyntax, token: ISyntaxToken, right: IExpressionSyntax): BinaryExpressionSyntax

Parameters

Returns

BinaryExpressionSyntax

childIndex(parent: ISyntaxElement, child: ISyntaxElement): number

Parameters

Returns

number

childOffset(parent: ISyntaxElement, child: ISyntaxElement): number

Parameters

Returns

number

childOffsetAt(parent: ISyntaxElement, index: number): number

Parameters

Returns

number

convertToIdentifierName(token: ISyntaxToken): ISyntaxToken

Parameters

Returns

ISyntaxToken

deferredTrivia(kind: SyntaxKind, text: ISimpleText, fullStart: number, fullWidth: number): ISyntaxTrivia

Parameters

Returns

ISyntaxTrivia

elementStructuralEquals(element1: ISyntaxElement, element2: ISyntaxElement): boolean

Parameters

Returns

boolean

emptySourceUnit(): SourceUnitSyntax

Returns

SourceUnitSyntax

emptyToken(kind: SyntaxKind): ISyntaxToken

Parameters

Returns

ISyntaxToken

falseExpression(): IUnaryExpressionSyntax

Returns

IUnaryExpressionSyntax

findSkippedTokenInLeadingTriviaList(positionedToken: PositionedToken, position: number): PositionedSkippedToken

Parameters

Returns

PositionedSkippedToken

findSkippedTokenInPositionedToken(positionedToken: PositionedToken, position: number): PositionedSkippedToken

Parameters

Returns

PositionedSkippedToken

findSkippedTokenInTrailingTriviaList(positionedToken: PositionedToken, position: number): PositionedSkippedToken

Parameters

Returns

PositionedSkippedToken

findSkippedTokenOnLeft(positionedToken: PositionedToken, position: number): PositionedSkippedToken

Parameters

Returns

PositionedSkippedToken

getAncestorOfKind(positionedToken: PositionedElement, kind: SyntaxKind): PositionedElement

Parameters

Returns

PositionedElement

getStandaloneExpression(positionedToken: PositionedToken): PositionedNodeOrToken

Parameters

Returns

PositionedNodeOrToken

hasAncestorOfKind(positionedToken: PositionedElement, kind: SyntaxKind): boolean

Parameters

Returns

boolean

identifier(text: string, info?: ITokenInfo): ISyntaxToken

Parameters

Returns

ISyntaxToken

identifierName(text: string, info?: ITokenInfo): ISyntaxToken

Parameters

Returns

ISyntaxToken

isEntirelyInStringOrRegularExpressionLiteral(sourceUnit: SourceUnitSyntax, position: number): boolean

Parameters

Returns

boolean

isEntirelyInsideComment(sourceUnit: SourceUnitSyntax, position: number): boolean

Parameters

Returns

boolean

isEntirelyInsideCommentTrivia(trivia: ISyntaxTrivia, fullStart: number, position: number): boolean

Parameters

Returns

boolean

isExpression(token: ISyntaxToken): boolean

Parameters

Returns

boolean

isInModuleOrTypeContext(positionedToken: PositionedToken): boolean

Parameters

Returns

boolean

isInTypeOnlyContext(positionedToken: PositionedToken): boolean

Parameters

Returns

boolean

isIntegerLiteral(expression: IExpressionSyntax): boolean

Parameters

Returns

boolean

isSuperInvocationExpression(node: IExpressionSyntax): boolean

Parameters

Returns

boolean

isSuperInvocationExpressionStatement(node: SyntaxNode): boolean

Parameters

Returns

boolean

isSuperMemberAccessExpression(node: IExpressionSyntax): boolean

Parameters

Returns

boolean

isSuperMemberAccessInvocationExpression(node: SyntaxNode): boolean

Parameters

Returns

boolean

isUnterminatedMultilineCommentTrivia(trivia: ISyntaxTrivia): boolean

Parameters

Returns

boolean

isUnterminatedStringLiteral(token: ISyntaxToken): boolean

Parameters

Returns

boolean

list(nodes: ISyntaxNodeOrToken[]): ISyntaxList

Parameters

Returns

ISyntaxList

listStructuralEquals(list1: ISyntaxList, list2: ISyntaxList): boolean

Parameters

Returns

boolean

massageEscapes(text: string): string

Parameters

  • text: string

Returns

string

multiLineComment(text: string): ISyntaxTrivia

Parameters

  • text: string

Returns

ISyntaxTrivia

nodeHasSkippedOrMissingTokens(node: SyntaxNode): boolean

Parameters

Returns

boolean

nodeOrTokenStructuralEquals(node1: ISyntaxNodeOrToken, node2: ISyntaxNodeOrToken): boolean

Parameters

Returns

boolean

nodeStructuralEquals(node1: SyntaxNode, node2: SyntaxNode): boolean

Parameters

Returns

boolean

numericLiteralExpression(text: string): IUnaryExpressionSyntax

Parameters

  • text: string

Returns

IUnaryExpressionSyntax

realizeToken(token: ISyntaxToken): ISyntaxToken

Parameters

Returns

ISyntaxToken

separatedList(nodes: ISyntaxNodeOrToken[]): ISeparatedSyntaxList

Parameters

Returns

ISeparatedSyntaxList

separatedListStructuralEquals(list1: ISeparatedSyntaxList, list2: ISeparatedSyntaxList): boolean

Parameters

Returns

boolean

singleLineComment(text: string): ISyntaxTrivia

Parameters

  • text: string

Returns

ISyntaxTrivia

skippedTokenTrivia(token: ISyntaxToken): ISyntaxTrivia

Parameters

Returns

ISyntaxTrivia

spaces(count: number): ISyntaxTrivia

Parameters

  • count: number

Returns

ISyntaxTrivia

splitMultiLineCommentTriviaIntoMultipleLines(trivia: ISyntaxTrivia): Array<string>

Parameters

Returns

Array<string>

stringLiteralExpression(text: string): IUnaryExpressionSyntax

Parameters

  • text: string

Returns

IUnaryExpressionSyntax

token(kind: SyntaxKind, info?: ITokenInfo): ISyntaxToken

Parameters

Returns

ISyntaxToken

tokenStructuralEquals(token1: ISyntaxToken, token2: ISyntaxToken): boolean

Parameters

Returns

boolean

tokenToJSON(token: ISyntaxToken): any

Parameters

Returns

any

trivia(kind: SyntaxKind, text: string): ISyntaxTrivia

Parameters

Returns

ISyntaxTrivia

triviaList(trivia: ISyntaxTrivia[]): ISyntaxTriviaList

Parameters

Returns

ISyntaxTriviaList

triviaListStructuralEquals(triviaList1: ISyntaxTriviaList, triviaList2: ISyntaxTriviaList): boolean

Parameters

Returns

boolean

triviaStructuralEquals(trivia1: ISyntaxTrivia, trivia2: ISyntaxTrivia): boolean

Parameters

Returns

boolean

trueExpression(): IUnaryExpressionSyntax

Returns

IUnaryExpressionSyntax

value(token: ISyntaxToken): any

Parameters

Returns

any

valueText(token: ISyntaxToken): string

Parameters

Returns

string

whitespace(text: string): ISyntaxTrivia

Parameters

  • text: string

Returns

ISyntaxTrivia