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

Struct ChainNode

ast/node.go:144–147  ·  view source on GitHub ↗

ChainNode represents an optional chaining group. A few MemberNode nodes can be chained together, and will be wrapped in a ChainNode. Example: foo.bar?.baz?.qux The whole chain will be wrapped in a ChainNode.

Source from the content-addressed store, hash-verified

142//
143// The whole chain will be wrapped in a ChainNode.
144type ChainNode struct {
145 base
146 Node Node // Node of the chain.
147}
148
149// MemberNode represents a member access.
150// It can be a field access, a method call,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected