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

Method inScope

packages/context/src/binding.ts:696–701  ·  view source on GitHub ↗

* Set the binding scope * @param scope - Binding scope

(scope: BindingScope)

Source from the content-addressed store, hash-verified

694 * @param scope - Binding scope
695 */
696 inScope(scope: BindingScope): this {
697 if (this._scope !== scope) this._clearCache();
698 this._scope = scope;
699 this.emitChangedEvent('scope');
700 return this;
701 }
702
703 /**
704 * Apply default scope to the binding. It only changes the scope if it's not

Callers 15

applyDefaultScopeMethod · 0.95
constructorMethod · 0.80
givenLifeCycleRegistryFunction · 0.80
asBindingTemplateFunction · 0.80
givenContextFunction · 0.80
givenContextFunction · 0.80
resolver.unit.tsFile · 0.80
binding.unit.tsFile · 0.80
specFunction · 0.80
MyControllerClass · 0.80

Calls 2

_clearCacheMethod · 0.95
emitChangedEventMethod · 0.95

Tested by 7

givenLifeCycleRegistryFunction · 0.64
givenContextFunction · 0.64
givenContextFunction · 0.64
specFunction · 0.64
setupBindingsFunction · 0.64
givenContextFunction · 0.64