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

Method _selectorNeedsScoping

packages/compiler/src/shadow_css.ts:690–693  ·  view source on GitHub ↗
(selector: string, scopeSelector: string)

Source from the content-addressed store, hash-verified

688 }
689
690 private _selectorNeedsScoping(selector: string, scopeSelector: string): boolean {
691 const re = this._makeScopeMatcher(scopeSelector);
692 return !re.test(selector);
693 }
694
695 private _makeScopeMatcher(scopeSelector: string): RegExp {
696 const lre = /\[/g;

Callers 1

applyScopeMethod · 0.95

Calls 2

_makeScopeMatcherMethod · 0.95
testMethod · 0.45

Tested by

no test coverage detected