| 76 | } |
| 77 | |
| 78 | class PropReference implements Reference { |
| 79 | constructor(private target: Map<string, Value>, private index: string) { |
| 80 | this.type = 'reference'; |
| 81 | } |
| 82 | |
| 83 | type: 'reference'; |
| 84 | |
| 85 | get(): Value { |
| 86 | return this.target.get(this.index) ?? NULL; |
| 87 | } |
| 88 | |
| 89 | set(value: Value): void { |
| 90 | this.target.set(this.index, value); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | class ArrReference implements Reference { |
| 95 | constructor(private items: readonly Reference[]) { |
nothing calls this directly
no outgoing calls
no test coverage detected