NewMapEntry creates a map entry with a key and value expression and a flag to indicate whether the entry is optional. Examples: {a: b} - key: a - value: b - optional: false {?a: ?b} - key: a - value: b - optional: true
(key, value ast.Expr, isOptional bool)
| 428 | // - value: b |
| 429 | // - optional: true |
| 430 | func (opt *optimizerExprFactory) NewMapEntry(key, value ast.Expr, isOptional bool) ast.EntryExpr { |
| 431 | return opt.fac.NewMapEntry(opt.nextID(), key, value, isOptional) |
| 432 | } |
| 433 | |
| 434 | // NewHasMacro generates a test-only select expression to be included within an AST and an unexpanded |
| 435 | // has() macro call signature to be inserted into the source info macro call metadata. |
nothing calls this directly
no test coverage detected