MCPcopy Index your code
hub / github.com/angular/angular / applyScope

Method applyScope

packages/compiler/src/shadow_css.ts:673–684  ·  view source on GitHub ↗
(shallowPart: string)

Source from the content-addressed store, hash-verified

671 .map((deepParts) => {
672 const [shallowPart, ...otherParts] = deepParts;
673 const applyScope = (shallowPart: string) => {
674 if (this._selectorNeedsScoping(shallowPart, scopeSelector)) {
675 return this._applySelectorScope({
676 selector: shallowPart,
677 scopeSelector,
678 hostSelector,
679 isParentSelector,
680 });
681 } else {
682 return shallowPart;
683 }
684 };
685 return [applyScope(shallowPart), ...otherParts].join(' ');
686 })
687 .join(', ');

Callers

nothing calls this directly

Calls 2

_selectorNeedsScopingMethod · 0.95
_applySelectorScopeMethod · 0.95

Tested by

no test coverage detected