(tNode: TNode)
| 298 | } |
| 299 | |
| 300 | export 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 | |
| 313 | function getNameOnlyMarkerIndex(nodeAttrs: TAttributes) { |
| 314 | for (let i = 0; i < nodeAttrs.length; i++) { |
no test coverage detected
searching dependent graphs…