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

Method walkChildNodes

hclsyntax/node.go:20–20  ·  view source on GitHub ↗

This is the mechanism by which the public-facing walk functions are implemented. Implementations should call the given function for each child node and then replace that node with its return value. The return value might just be the same node, for non-transforming walks.

(w internalWalkFunc)

Source from the content-addressed store, hash-verified

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}

Callers 2

VisitAllFunction · 0.65
WalkFunction · 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