Module SyntaxFacts

Index

Functions

Functions

getBinaryExpressionFromOperatorToken(tokenKind: SyntaxKind): SyntaxKind

Parameters

Returns

SyntaxKind

getOperatorTokenFromBinaryExpression(tokenKind: SyntaxKind): SyntaxKind

Parameters

Returns

SyntaxKind

getPostfixUnaryExpressionFromOperatorToken(tokenKind: SyntaxKind): SyntaxKind

Parameters

Returns

SyntaxKind

getPrefixUnaryExpressionFromOperatorToken(tokenKind: SyntaxKind): SyntaxKind

Parameters

Returns

SyntaxKind

getText(kind: SyntaxKind): string

Parameters

Returns

string

getTokenKind(text: string): SyntaxKind

Parameters

  • text: string

Returns

SyntaxKind

isAnyDivideOrRegularExpressionToken(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isAnyDivideToken(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isAnyKeyword(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isAnyPunctuation(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isBinaryExpressionOperatorToken(tokenKind: SyntaxKind): boolean

Parameters

Returns

boolean

isDirectivePrologueElement(node: ISyntaxNodeOrToken): boolean

Parameters

Returns

boolean

isFutureReservedKeyword(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isFutureReservedStrictKeyword(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isIdentifierNameOrAnyKeyword(token: ISyntaxToken): boolean

Parameters

Returns

boolean

isPrefixUnaryExpressionOperatorToken(tokenKind: SyntaxKind): boolean

Parameters

Returns

boolean

isStandardKeyword(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isTokenKind(kind: SyntaxKind): boolean

Parameters

Returns

boolean

isUseStrictDirective(node: ISyntaxNodeOrToken): boolean

Parameters

Returns

boolean