MCPcopy Create free account
hub / github.com/expr-lang/expr / Type

Method Type

ast/node.go:60–65  ·  view source on GitHub ↗

Type returns the type of the node.

()

Source from the content-addressed store, hash-verified

58
59// Type returns the type of the node.
60func (n *base) Type() reflect.Type {
61 if n.nature.Type == nil {
62 return anyType
63 }
64 return n.nature.Type
65}
66
67// SetType sets the type of the node.
68func (n *base) SetType(t reflect.Type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected