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

Method FloatNode

compiler/compiler.go:392–401  ·  view source on GitHub ↗
(node *ast.FloatNode)

Source from the content-addressed store, hash-verified

390}
391
392func (c *compiler) FloatNode(node *ast.FloatNode) {
393 switch node.Type().Kind() {
394 case reflect.Float32:
395 c.emitPush(float32(node.Value))
396 case reflect.Float64:
397 c.emitPush(node.Value)
398 default:
399 c.emitPush(node.Value)
400 }
401}
402
403func (c *compiler) BoolNode(node *ast.BoolNode) {
404 if node.Value {

Callers 1

compileMethod · 0.95

Calls 2

emitPushMethod · 0.95
TypeMethod · 0.65

Tested by

no test coverage detected