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.
| 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. |
| 1290 | type ObjectConsKeyExpr struct { |
| 1291 | Wrapped Expression |
| 1292 | ForceNonLiteral bool |
| 1293 | } |
| 1294 | |
| 1295 | func (e *ObjectConsKeyExpr) literalName() string { |
| 1296 | // This is our logic for deciding whether to behave like a literal string. |
nothing calls this directly
no outgoing calls
no test coverage detected