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

Struct ConstantNode

ast/node.go:117–120  ·  view source on GitHub ↗

ConstantNode represents a constant. Constants are predefined values like nil, true, false, array, map, etc. The parser.Parse will never generate ConstantNode, it is only generated by the optimizer.

Source from the content-addressed store, hash-verified

115// The parser.Parse will never generate ConstantNode, it is only generated
116// by the optimizer.
117type ConstantNode struct {
118 base
119 Value any // Value of the constant.
120}
121
122// UnaryNode represents a unary operator.
123type UnaryNode struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected