(value: T)
| 4 | |
| 5 | // Helper to create a value expression |
| 6 | function val<T>(value: T): IR.BasicExpression<T> { |
| 7 | return { type: `val`, value } as IR.BasicExpression<T> |
| 8 | } |
| 9 | |
| 10 | // Helper to create a reference expression |
| 11 | function ref(...path: Array<string>): IR.BasicExpression { |