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