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

Method Equal

expr/node.go:933–950  ·  view source on GitHub ↗
(n Node)

Source from the content-addressed store, hash-verified

931 return fmt.Errorf("unrecognized value")
932}
933func (m *ValueNode) Equal(n Node) bool {
934 if m == nil && n == nil {
935 return true
936 }
937 if m == nil && n != nil {
938 return false
939 }
940 if m != nil && n == nil {
941 return false
942 }
943 if nt, ok := n.(*ValueNode); ok {
944 if m.Value.Value() != nt.Value.Value() {
945 return false
946 }
947 return true
948 }
949 return false
950}
951
952func NewIdentityNode(tok *lex.Token) *IdentityNode {
953 in := &IdentityNode{Text: tok.V, Quote: tok.Quote}

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected