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

Method IsBooleanIdentity

expr/node.go:1083–1089  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1081 return fmt.Errorf("unrecognized identity")
1082}
1083func (m *IdentityNode) IsBooleanIdentity() bool {
1084 val := strings.ToLower(m.Text)
1085 if val == "true" || val == "false" {
1086 return true
1087 }
1088 return false
1089}
1090func (m *IdentityNode) Bool() bool {
1091 val := strings.ToLower(m.Text)
1092 if val == "true" {

Callers 7

ExprMethod · 0.95
cInnerMethod · 0.95
evalMethod · 0.80
evalFunction · 0.80
walkIdentityFunction · 0.80
IsLiteralMethod · 0.80
IsLiteralOrFuncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected