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

Struct ObjectConsKeyExpr

hclsyntax/expression.go:1290–1293  ·  hclsyntax/expression.go::ObjectConsKeyExpr

ObjectConsKeyExpr is a special wrapper used only for ObjectConsExpr keys, which deals with the special case that a naked identifier in that position must be interpreted as a literal string rather than evaluated directly.

Source from the content-addressed store, hash-verified

1288// which deals with the special case that a naked identifier in that position
1289// must be interpreted as a literal string rather than evaluated directly.
1290type ObjectConsKeyExpr struct {
1291 Wrapped Expression
1292 ForceNonLiteral bool
1293}
1294
1295func (e *ObjectConsKeyExpr) literalName() string {
1296 // This is our logic for deciding whether to behave like a literal string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected