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

Function getProjectAsAttrValue

packages/core/src/render3/node_selector_matcher.ts:300–311  ·  view source on GitHub ↗
(tNode: TNode)

Source from the content-addressed store, hash-verified

298}
299
300export function getProjectAsAttrValue(tNode: TNode): CssSelector | null {
301 const nodeAttrs = tNode.attrs;
302 if (nodeAttrs != null) {
303 const ngProjectAsAttrIdx = nodeAttrs.indexOf(AttributeMarker.ProjectAs);
304 // only check for ngProjectAs in attribute names, don't accidentally match attribute's value
305 // (attribute names are stored at even indexes)
306 if ((ngProjectAsAttrIdx & 1) === 0) {
307 return nodeAttrs[ngProjectAsAttrIdx + 1] as CssSelector;
308 }
309 }
310 return null;
311}
312
313function getNameOnlyMarkerIndex(nodeAttrs: TAttributes) {
314 for (let i = 0; i < nodeAttrs.length; i++) {

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…