MCPcopy Create free account
hub / github.com/microsoft/typescript-go / tokenIsIdentifierOrKeyword

Function tokenIsIdentifierOrKeyword

internal/scanner/utilities.go:13–15  ·  view source on GitHub ↗
(token ast.Kind)

Source from the content-addressed store, hash-verified

11)
12
13func tokenIsIdentifierOrKeyword(token ast.Kind) bool {
14 return token >= ast.KindIdentifier
15}
16
17func IdentifierToKeywordKind(node *ast.Identifier) ast.Kind {
18 return textToKeyword[node.Text]

Callers 1

ScanJsxIdentifierMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected