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

Function isMatching

packages/core/test/render3/node_selector_matcher_spec.ts:26–36  ·  view source on GitHub ↗
(
    tagName: string,
    attrsOrTNode: TAttributes | TNode | null,
    selector: CssSelector,
  )

Source from the content-addressed store, hash-verified

24
25describe('css selector matching', () => {
26 function isMatching(
27 tagName: string,
28 attrsOrTNode: TAttributes | TNode | null,
29 selector: CssSelector,
30 ): boolean {
31 const tNode =
32 !attrsOrTNode || Array.isArray(attrsOrTNode)
33 ? createTNode(null!, null, TNodeType.Element, 0, tagName, attrsOrTNode as TAttributes)
34 : (attrsOrTNode as TNode);
35 return isNodeMatchingSelector(tNode, selector, true);
36 }
37
38 describe('isNodeMatchingSimpleSelector', () => {
39 describe('element matching', () => {

Callers 1

Calls 3

createTNodeFunction · 0.90
isNodeMatchingSelectorFunction · 0.90
isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…