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

Method SetType

ast/node.go:68–70  ·  view source on GitHub ↗

SetType sets the type of the node.

(t reflect.Type)

Source from the content-addressed store, hash-verified

66
67// SetType sets the type of the node.
68func (n *base) SetType(t reflect.Type) {
69 n.nature = nature.FromType(t)
70}
71
72// NilNode represents nil.
73type NilNode struct {

Callers

nothing calls this directly

Calls 1

FromTypeFunction · 0.92

Tested by

no test coverage detected