( lView: LView, textOrName: string, nodeType: typeof Node.COMMENT_NODE | typeof Node.TEXT_NODE | typeof Node.ELEMENT_NODE, )
| 122 | } |
| 123 | |
| 124 | function createNodeWithoutHydration( |
| 125 | lView: LView, |
| 126 | textOrName: string, |
| 127 | nodeType: typeof Node.COMMENT_NODE | typeof Node.TEXT_NODE | typeof Node.ELEMENT_NODE, |
| 128 | ) { |
| 129 | const renderer = lView[RENDERER]; |
| 130 | |
| 131 | switch (nodeType) { |
| 132 | case Node.COMMENT_NODE: |
| 133 | return createCommentNode(renderer, textOrName); |
| 134 | |
| 135 | case Node.TEXT_NODE: |
| 136 | return createTextNode(renderer, textOrName); |
| 137 | |
| 138 | case Node.ELEMENT_NODE: |
| 139 | return createElementNode(renderer, textOrName, null); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | let _locateOrCreateNode: typeof locateOrCreateNodeImpl = (lView, index, textOrName, nodeType) => { |
| 144 | lastNodeWasCreated(true); |
no test coverage detected
searching dependent graphs…