( index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number, )
| 88 | * @codeGenApi |
| 89 | */ |
| 90 | export function ɵɵelementStart( |
| 91 | index: number, |
| 92 | name: string, |
| 93 | attrsIndex?: number | null, |
| 94 | localRefsIndex?: number, |
| 95 | ): typeof ɵɵelementStart { |
| 96 | const lView = getLView(); |
| 97 | |
| 98 | ngDevMode && assertTNodeCreationIndex(lView, index); |
| 99 | |
| 100 | const tView = lView[TVIEW]; |
| 101 | const adjustedIndex = index + HEADER_OFFSET; |
| 102 | const tNode = tView.firstCreatePass |
| 103 | ? directiveHostFirstCreatePass( |
| 104 | adjustedIndex, |
| 105 | lView, |
| 106 | TNodeType.Element, |
| 107 | name, |
| 108 | findDirectiveDefMatches, |
| 109 | getBindingsEnabled(), |
| 110 | attrsIndex, |
| 111 | localRefsIndex, |
| 112 | ) |
| 113 | : (tView.data[adjustedIndex] as TElementNode); |
| 114 | |
| 115 | // If the node is a component host and we have a tracing service, we need to wrap the init logic. |
| 116 | if (isComponentHost(tNode)) { |
| 117 | const tracingService = lView[ENVIRONMENT].tracingService; |
| 118 | |
| 119 | if (tracingService && tracingService.componentCreate) { |
| 120 | const def = tView.data[tNode.directiveStart + tNode.componentOffset] as ComponentDef<{}>; |
| 121 | |
| 122 | return tracingService.componentCreate(getComponentName(def), () => { |
| 123 | initializeElement(index, name, lView, tNode, localRefsIndex); |
| 124 | return ɵɵelementStart; |
| 125 | }); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | initializeElement(index, name, lView, tNode, localRefsIndex); |
| 130 | return ɵɵelementStart; |
| 131 | } |
| 132 | |
| 133 | function initializeElement( |
| 134 | index: number, |
no test coverage detected