MCPcopy Create free account
hub / github.com/expr-lang/expr / String

Method String

parser/lexer/token.go:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (t Token) String() string {
28 if t.Value == "" {
29 return string(t.Kind)
30 }
31 return fmt.Sprintf("%s(%#v)", t.Kind, t.Value)
32}
33
34func (t Token) Is(kind Kind, values ...string) bool {
35 if kind != t.Kind {

Callers

nothing calls this directly

Calls 1

SprintfMethod · 0.80

Tested by

no test coverage detected