MCPcopy Create free account
hub / github.com/angular/angular / _selectorNeedsScoping

Method _selectorNeedsScoping

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

Source from the content-addressed store, hash-verified

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

Callers 1

applyScopeMethod · 0.95

Calls 2

_makeScopeMatcherMethod · 0.95
testMethod · 0.45

Tested by

no test coverage detected