MCPcopy Index your code
hub / github.com/expr-lang/expr / toFloatNode

Method toFloatNode

parser/parser.go:561–567  ·  view source on GitHub ↗
(number float64)

Source from the content-addressed store, hash-verified

559}
560
561func (p *Parser) toFloatNode(number float64) Node {
562 if number > math.MaxFloat64 {
563 p.error("float literal is too large")
564 return nil
565 }
566 return p.createNode(&FloatNode{Value: number}, p.current.Location)
567}
568
569func (p *Parser) parseCall(token Token, arguments []Node, checkOverrides bool) Node {
570 var node Node

Callers 1

parseSecondaryMethod · 0.95

Calls 2

errorMethod · 0.95
createNodeMethod · 0.95

Tested by

no test coverage detected