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

Function isReservedWord

internal/parser/parser.go:6418–6420  ·  view source on GitHub ↗
(token ast.Kind)

Source from the content-addressed store, hash-verified

6416}
6417
6418func isReservedWord(token ast.Kind) bool {
6419 return ast.KindFirstReservedWord <= token && token <= ast.KindLastReservedWord
6420}
6421
6422func attachFileToDiagnostics(diagnostics []*ast.Diagnostic, file *ast.SourceFile) []*ast.Diagnostic {
6423 for _, d := range diagnostics {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected