(lView: LView, tNode: TNode, matchingIdx: number, read: any)
| 347 | } |
| 348 | |
| 349 | function createResultForNode(lView: LView, tNode: TNode, matchingIdx: number, read: any): any { |
| 350 | if (matchingIdx === -1) { |
| 351 | // if read token and / or strategy is not specified, detect it using appropriate tNode type |
| 352 | return createResultByTNodeType(tNode, lView); |
| 353 | } else if (matchingIdx === -2) { |
| 354 | // read a special token from a node injector |
| 355 | return createSpecialToken(lView, tNode, read); |
| 356 | } else { |
| 357 | // read a token |
| 358 | return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode as TElementNode); |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | function createSpecialToken(lView: LView, tNode: TNode, read: any): any { |
| 363 | if (read === ViewEngine_ElementRef) { |
no test coverage detected
searching dependent graphs…