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

Method walkChildNodes

hclsyntax/expression.go:1304–1310  ·  view source on GitHub ↗
(w internalWalkFunc)

Source from the content-addressed store, hash-verified

1302}
1303
1304func (e *ObjectConsKeyExpr) walkChildNodes(w internalWalkFunc) {
1305 // We only treat our wrapped expression as a real expression if we're
1306 // not going to interpret it as a literal.
1307 if e.literalName() == "" {
1308 w(e.Wrapped)
1309 }
1310}
1311
1312func (e *ObjectConsKeyExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) {
1313 // Because we accept a naked identifier as a literal key rather than a

Callers

nothing calls this directly

Calls 1

literalNameMethod · 0.95

Tested by

no test coverage detected