Appearance
| 1 | namespace Syntax.Trees.Expressions is | |
| 2 | ||
| 3 | use Source; | |
| 4 | ||
| 5 | class NULL(location: LOCATION): Expression is | |
| 6 | // Constraint pushed in by the parent context (typed `let` | |
| 7 | // initializer, assignment RHS, return position, call | |
| 8 | // argument). When it is the value-type NULLABLE[T], `null` | |
| 9 | // lowers to an empty Nullable rather than a bare ldnull. | |
| 10 | ||
| 11 | super(location); | |
| 12 | ||
| 13 | set_expected_type(expected_type: Semantic.Types.Type?, error_message: string?) is | |
| 14 | compile_expressions_state.set_expected_type(expected_type, error_message); | |
| 15 | si | |
| 16 | ||
| 17 | accept(visitor: Visitor) is | |
| 18 | visitor.visit(self); | |
| 19 | si | |
| 20 | si | |
| 21 | si |