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

Method finalize

packages/compiler/src/directive_matching.ts:460–473  ·  view source on GitHub ↗
(cssSelector: CssSelector, callback: ((c: CssSelector, a: T) => void) | null)

Source from the content-addressed store, hash-verified

458 }
459
460 finalize(cssSelector: CssSelector, callback: ((c: CssSelector, a: T) => void) | null): boolean {
461 let result = true;
462 if (this.notSelectors.length > 0 && (!this.listContext || !this.listContext.alreadyMatched)) {
463 const notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);
464 result = !notMatcher.match(cssSelector, null);
465 }
466 if (result && callback && (!this.listContext || !this.listContext.alreadyMatched)) {
467 if (this.listContext) {
468 this.listContext.alreadyMatched = true;
469 }
470 callback(this.selector, this.cbContext);
471 }
472 return result;
473 }
474}
475
476export class SelectorlessMatcher<T = unknown> {

Callers 2

_matchTerminalMethod · 0.45

Calls 3

createNotMatcherMethod · 0.80
callbackFunction · 0.50
matchMethod · 0.45

Tested by

no test coverage detected