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

Function createNodeWithoutHydration

packages/core/src/render3/i18n/i18n_apply.ts:124–141  ·  view source on GitHub ↗
(
  lView: LView,
  textOrName: string,
  nodeType: typeof Node.COMMENT_NODE | typeof Node.TEXT_NODE | typeof Node.ELEMENT_NODE,
)

Source from the content-addressed store, hash-verified

122}
123
124function 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
143let _locateOrCreateNode: typeof locateOrCreateNodeImpl = (lView, index, textOrName, nodeType) => {
144 lastNodeWasCreated(true);

Callers 2

_locateOrCreateNodeFunction · 0.85
locateOrCreateNodeImplFunction · 0.85

Calls 3

createCommentNodeFunction · 0.90
createTextNodeFunction · 0.90
createElementNodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…