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

Method BoolNode

compiler/compiler.go:403–409  ·  view source on GitHub ↗
(node *ast.BoolNode)

Source from the content-addressed store, hash-verified

401}
402
403func (c *compiler) BoolNode(node *ast.BoolNode) {
404 if node.Value {
405 c.emit(OpTrue)
406 } else {
407 c.emit(OpFalse)
408 }
409}
410
411func (c *compiler) StringNode(node *ast.StringNode) {
412 c.emitPush(node.Value)

Callers 1

compileMethod · 0.95

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected