* The declared type of a name the enclosing routines declare (null: none it * can be named by), or undefined when none does. `textLocals` are the * declarations the source text gives a broken tree's routine.
(lower: string, textLocals?: Map<string, string | null> | null)
| 9726 | * declarations the source text gives a broken tree's routine. |
| 9727 | */ |
| 9728 | private pascalLocalType(lower: string, textLocals?: Map<string, string | null> | null): string | null | undefined { |
| 9729 | for (let i = this.pascalScopes.length - 1; i >= 0; i--) { |
| 9730 | const locals = this.pascalScopes[i]!.locals; |
| 9731 | if (locals.has(lower)) return locals.get(lower); |
| 9732 | } |
| 9733 | return textLocals?.has(lower) ? textLocals.get(lower) : undefined; |
| 9734 | } |
| 9735 | |
| 9736 | /** |
| 9737 | * The class and routine a name at `line` belongs to; null outside any code. |
no test coverage detected