Appearance
| 1 | namespace Semantic is | |
| 2 | use Types.Type | |
| 3 | ||
| 4 | // Whether a value's type is a local variable's, still being inferred | |
| 5 | // from what is assigned to it. A join or an assignment waits for such | |
| 6 | // a value. Other placeholders do not qualify: a literal's own result | |
| 7 | // or a call's type argument can be what the join itself is deciding, | |
| 8 | // and waiting for it would wait forever. | |
| 9 | class AWAITED_LOCAL is | |
| 10 | is_awaited_local(type: Type?) -> bool static => | |
| 11 | if let placeholder: Types.INFERRED_VARIABLE_TYPE = type then | |
| 12 | isa Symbols.LOCAL_VARIABLE(placeholder.origin) | |
| 13 | else | |
| 14 | false | |
| 15 | fi | |
| 16 | si | |
| 17 | si |