typechecker/expr-result.spice
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // Copyright (c) 2021-2026 ChilliBits. All rights reserved. | ||
| 2 | |||
| 3 | import "@/symboltablebuilder/symbol-table-entry"; | ||
| 4 | import "@/symboltablebuilder/qual-type"; | ||
| 5 | |||
| 6 | 1455899 | public type ExprResult struct { | |
| 7 | public QualType ty | ||
| 8 | public SymbolTableEntry* entry = nil<SymbolTableEntry*> | ||
| 9 | } | ||
| 10 | |||
| 11 | 752496 | public const f<bool> ExprResult.isTemporary() { | |
| 12 | 752496 | return this.entry == nil<SymbolTableEntry*> || this.entry.anonymous; | |
| 13 | } | ||
| 14 |