Returns whether a template symbol is defined locally within the current scope.
(node: Variable | LetDeclaration | Reference)
| 366 | |
| 367 | /** Returns whether a template symbol is defined locally within the current scope. */ |
| 368 | isLocal(node: Variable | LetDeclaration | Reference): boolean { |
| 369 | if (node instanceof Variable) { |
| 370 | return this.varMap.has(node); |
| 371 | } |
| 372 | if (node instanceof LetDeclaration) { |
| 373 | return this.letDeclOpMap.has(node.name); |
| 374 | } |
| 375 | return this.referenceOpMap.has(node); |
| 376 | } |
| 377 | |
| 378 | /** |
| 379 | * Constructs a `Scope` given either a `Template` or a list of `Node`s. |
no test coverage detected