MCPcopy Create free account
hub / github.com/araddon/qlbridge / LoadTokenInfo

Function LoadTokenInfo

lex/token.go:443–456  ·  view source on GitHub ↗

LoadTokenInfo load the token info into global map

()

Source from the content-addressed store, hash-verified

441
442// LoadTokenInfo load the token info into global map
443func LoadTokenInfo() {
444 for tok, ti := range TokenNameMap {
445 ti.T = tok
446 if ti.Kw == "" {
447 ti.Kw = ti.Description
448 }
449 TokenToOp[ti.Kw] = tok
450 if strings.Contains(ti.Kw, " ") {
451 parts := strings.Split(ti.Kw, " ")
452 ti.firstWord = parts[0]
453 ti.HasSpaces = true
454 }
455 }
456}
457
458// TokenFromOp get token from operation string
459func TokenFromOp(op string) Token {

Callers 3

initFunction · 0.92
initFunction · 0.92
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected