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

Function toBool

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

Source from the content-addressed store, hash-verified

335}
336
337func toBool(n Node) *BoolNode {
338 switch a := n.(type) {
339 case *BoolNode:
340 return a
341 }
342 return nil
343}

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…