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

Function StringToToken

internal/scanner/scanner.go:2267–2273  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

2265}
2266
2267func StringToToken(s string) ast.Kind {
2268 kind, ok := textToToken[s]
2269 if ok {
2270 return kind
2271 }
2272 return ast.KindUnknown
2273}
2274
2275func GetViableKeywordSuggestions() []string {
2276 result := make([]string, 0, len(textToKeyword))

Calls

no outgoing calls

Tested by

no test coverage detected