MCPcopy
hub / github.com/hashicorp/hcl / Node

Interface Node

hclsyntax/node.go:14–23  ·  hclsyntax/node.go::Node

Node is the abstract type that every AST node implements. This is a closed interface, so it cannot be implemented from outside of this package.

Source from the content-addressed store, hash-verified

12// This is a closed interface, so it cannot be implemented from outside of
13// this package.
14type Node interface {
15 // This is the mechanism by which the public-facing walk functions
16 // are implemented. Implementations should call the given function
17 // for each child node and then replace that node with its return value.
18 // The return value might just be the same node, for non-transforming
19 // walks.
20 walkChildNodes(w internalWalkFunc)
21
22 Range() hcl.Range
23}
24
25type internalWalkFunc func(Node)

Callers 10

VisitAllFunction · 0.65
WalkFunction · 0.65
ValueMethod · 0.65
ValueMethod · 0.65
ValueMethod · 0.65
RangeMethod · 0.65
ValueMethod · 0.65
ValueMethod · 0.65
ContextStringMethod · 0.65

Implementers 15

ParenthesesExprhclsyntax/expression.go
LiteralValueExprhclsyntax/expression.go
ScopeTraversalExprhclsyntax/expression.go
RelativeTraversalExprhclsyntax/expression.go
FunctionCallExprhclsyntax/expression.go
ConditionalExprhclsyntax/expression.go
IndexExprhclsyntax/expression.go
TupleConsExprhclsyntax/expression.go
ObjectConsExprhclsyntax/expression.go
ObjectConsKeyExprhclsyntax/expression.go
ForExprhclsyntax/expression.go
SplatExprhclsyntax/expression.go

Calls

no outgoing calls

Tested by

no test coverage detected