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

Method SetLocation

ast/node.go:45–47  ·  view source on GitHub ↗

SetLocation sets the location of the node in the source code.

(loc file.Location)

Source from the content-addressed store, hash-verified

43
44// SetLocation sets the location of the node in the source code.
45func (n *base) SetLocation(loc file.Location) {
46 n.loc = loc
47}
48
49// Nature returns the nature of the node.
50func (n *base) Nature() *nature.Nature {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected