MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / isVisibleTo

Method isVisibleTo

packages/context/src/context.ts:566–573  ·  view source on GitHub ↗

* Check if this context is visible (same or ancestor) to the given one * @param ctx - Another context object

(ctx: Context)

Source from the content-addressed store, hash-verified

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

Callers 2

getResolutionContextMethod · 0.80
context.unit.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected