* Check if this context is visible (same or ancestor) to the given one * @param ctx - Another context object
(ctx: Context)
| 564 | * @param ctx - Another context object |
| 565 | */ |
| 566 | isVisibleTo(ctx: Context) { |
| 567 | let current: Context | undefined = ctx; |
| 568 | while (current != null) { |
| 569 | if (current === this) return true; |
| 570 | current = current._parent; |
| 571 | } |
| 572 | return false; |
| 573 | } |
| 574 | |
| 575 | /** |
| 576 | * Find bindings using a key pattern or filter function |
no outgoing calls
no test coverage detected