(key: keyof T, value: o.Expression | null)
| 154 | values: {key: string; quoted: boolean; value: o.Expression}[] = []; |
| 155 | |
| 156 | set(key: keyof T, value: o.Expression | null): void { |
| 157 | if (value) { |
| 158 | const existing = this.values.find((value) => value.key === key); |
| 159 | |
| 160 | if (existing) { |
| 161 | existing.value = value; |
| 162 | } else { |
| 163 | this.values.push({key: key as string, value, quoted: false}); |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | toLiteralMap(): o.LiteralMapExpr { |
| 169 | return o.literalMap(this.values); |
no test coverage detected