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

Method literalName

hclsyntax/expression.go:1295–1302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1293}
1294
1295func (e *ObjectConsKeyExpr) literalName() string {
1296 // This is our logic for deciding whether to behave like a literal string.
1297 // We lean on our AbsTraversalForExpr implementation here, which already
1298 // deals with some awkward cases like the expression being the result
1299 // of the keywords "null", "true" and "false" which we'd want to interpret
1300 // as keys here too.
1301 return hcl.ExprAsKeyword(e.Wrapped)
1302}
1303
1304func (e *ObjectConsKeyExpr) walkChildNodes(w internalWalkFunc) {
1305 // We only treat our wrapped expression as a real expression if we're

Callers 2

walkChildNodesMethod · 0.95
ValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected