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

Function isSimpleType

compiler/compiler.go:649–658  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

647}
648
649func isSimpleType(node ast.Node) bool {
650 if node == nil {
651 return false
652 }
653 t := node.Type()
654 if t == nil {
655 return false
656 }
657 return t.PkgPath() == ""
658}
659
660func (c *compiler) ChainNode(node *ast.ChainNode) {
661 c.chains = append(c.chains, []int{})

Callers 1

equalBinaryNodeMethod · 0.85

Calls 1

TypeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…