* Constructs a `Scope` given either a `Template` or a list of `Node`s. * This is identical to `Scope.forNodes` which we can't reference in some ops due to * circular dependencies. *. * @param parentScope the `Scope` of the parent template. * @param scopedNode Node that provides the sc
(
parentScope: Scope,
scopedNode: Template | IfBlockBranch | ForLoopBlock | HostElement | null,
children: Node[] | null,
guard: TcbExpr | null,
)
| 373 | * @param guard an expression that is applied to this scope for type narrowing purposes. |
| 374 | */ |
| 375 | createChildScope( |
| 376 | parentScope: Scope, |
| 377 | scopedNode: Template | IfBlockBranch | ForLoopBlock | HostElement | null, |
| 378 | children: Node[] | null, |
| 379 | guard: TcbExpr | null, |
| 380 | ): Scope { |
| 381 | return Scope.forNodes(this.tcb, parentScope, scopedNode, children, guard); |
| 382 | } |
| 383 | |
| 384 | private resolveLocal(ref: LocalSymbol, directive?: TcbDirectiveMetadata): TcbExpr | null { |
| 385 | if (ref instanceof Reference && this.referenceOpMap.has(ref)) { |
no test coverage detected