MCPcopy
hub / github.com/expr-lang/expr / ConstantNode

Method ConstantNode

compiler/compiler.go:419–425  ·  view source on GitHub ↗
(node *ast.ConstantNode)

Source from the content-addressed store, hash-verified

417}
418
419func (c *compiler) ConstantNode(node *ast.ConstantNode) {
420 if node.Value == nil {
421 c.emit(OpNil)
422 return
423 }
424 c.emitPush(node.Value)
425}
426
427func (c *compiler) UnaryNode(node *ast.UnaryNode) {
428 c.compile(node.Node)

Callers 1

compileMethod · 0.95

Calls 2

emitMethod · 0.95
emitPushMethod · 0.95

Tested by

no test coverage detected