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

Function toInteger

optimizer/fold.go:321–327  ·  view source on GitHub ↗
(n Node)

Source from the content-addressed store, hash-verified

319}
320
321func toInteger(n Node) *IntegerNode {
322 switch a := n.(type) {
323 case *IntegerNode:
324 return a
325 }
326 return nil
327}
328
329func toFloat(n Node) *FloatNode {
330 switch a := n.(type) {

Callers 1

VisitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…