Home
last modified time | relevance | path

Searched refs:newNode (Results 1 – 25 of 47) sorted by relevance

12

/third_party/parse5/packages/parse5-htmlparser2-tree-adapter/lib/
Dindex.ts103 appendChild(parentNode: ParentNode, newNode: ChildNode): void {
107 prev.next = newNode;
108 newNode.prev = prev;
111 parentNode.children.push(newNode);
112 newNode.parent = parentNode;
115 insertBefore(parentNode: ParentNode, newNode: ChildNode, referenceNode: ChildNode): void {
120 prev.next = newNode;
121 newNode.prev = prev;
124 referenceNode.prev = newNode;
125 newNode.next = referenceNode;
[all …]
/third_party/typescript/src/testRunner/unittests/services/
DtextChanges.ts225 const newNode = createTestVariableDeclaration("z1"); constant
226 …nge(sourceFile, { pos: sourceFile.text.indexOf("y"), end: sourceFile.text.indexOf(";") }, newNode);
236 const newNode = createTestVariableDeclaration("z1"); constant
237 changeTracker.replaceNode(sourceFile, findChild("y", sourceFile), newNode);
646 for (const newNode of newNodes) { constant
647 changeTracker.insertNodeAfter(sourceFile, insertAfter, newNode);
702 const newNode = factory.createPropertyDeclaration( constant
708 changeTracker.insertNodeAfter(sourceFile, findChild("x", sourceFile), newNode);
719 const newNode = factory.createPropertyDeclaration( constant
725 changeTracker.insertNodeAfter(sourceFile, findChild("x", sourceFile), newNode);
[all …]
/third_party/node/deps/icu-small/source/common/
Dstringtriebuilder.cpp319 StringTrieBuilder::registerNode(Node *newNode, UErrorCode &errorCode) { in registerNode() argument
321 delete newNode; in registerNode()
324 if(newNode==nullptr) { in registerNode()
328 const UHashElement *old=uhash_find(nodes, newNode); in registerNode()
330 delete newNode; in registerNode()
338 uhash_puti(nodes, newNode, 1, &errorCode); in registerNode()
341 delete newNode; in registerNode()
344 return newNode; in registerNode()
357 Node *newNode=new FinalValueNode(value); in registerFinalValue() local
358 if(newNode==nullptr) { in registerFinalValue()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dstringtriebuilder.cpp319 StringTrieBuilder::registerNode(Node *newNode, UErrorCode &errorCode) { in registerNode() argument
321 delete newNode; in registerNode()
324 if(newNode==NULL) { in registerNode()
328 const UHashElement *old=uhash_find(nodes, newNode); in registerNode()
330 delete newNode; in registerNode()
338 uhash_puti(nodes, newNode, 1, &errorCode); in registerNode()
341 delete newNode; in registerNode()
344 return newNode; in registerNode()
357 Node *newNode=new FinalValueNode(value); in registerFinalValue() local
358 if(newNode==NULL) { in registerFinalValue()
[all …]
/third_party/icu/icu4c/source/common/
Dstringtriebuilder.cpp319 StringTrieBuilder::registerNode(Node *newNode, UErrorCode &errorCode) { in registerNode() argument
321 delete newNode; in registerNode()
324 if(newNode==NULL) { in registerNode()
328 const UHashElement *old=uhash_find(nodes, newNode); in registerNode()
330 delete newNode; in registerNode()
338 uhash_puti(nodes, newNode, 1, &errorCode); in registerNode()
341 delete newNode; in registerNode()
344 return newNode; in registerNode()
357 Node *newNode=new FinalValueNode(value); in registerFinalValue() local
358 if(newNode==NULL) { in registerFinalValue()
[all …]
/third_party/parse5/packages/parse5/lib/tree-adapters/
Ddefault.ts150 appendChild(parentNode: ParentNode, newNode: ChildNode): void {
151 parentNode.childNodes.push(newNode);
152 newNode.parentNode = parentNode;
155 insertBefore(parentNode: ParentNode, newNode: ChildNode, referenceNode: ChildNode): void {
158 parentNode.childNodes.splice(insertionIdx, 0, newNode);
159 newNode.parentNode = parentNode;
Dinterface.ts50 appendChild(parentNode: T['parentNode'], newNode: T['childNode']): void;
191 …insertBefore(parentNode: T['parentNode'], newNode: T['childNode'], referenceNode: T['childNode']):…
/third_party/typescript/src/services/refactors/
DconvertArrowFunctionOrFunctionExpression.ts206 …const newNode = factory.createFunctionExpression(func.modifiers, func.asteriskToken, /* name */ un… constant
207 return textChanges.ChangeTracker.with(context, t => t.replaceNode(file, func, newNode));
219 …const newNode = factory.createFunctionDeclaration(length(modifiers) ? modifiers : undefined, func.… constant
222 … return textChanges.ChangeTracker.with(context, t => t.replaceNode(file, statement, newNode));
227 t.insertNodeAfter(file, statement, newNode);
247 …const newNode = factory.createArrowFunction(func.modifiers, func.typeParameters, func.parameters, … constant
248 return textChanges.ChangeTracker.with(context, t => t.replaceNode(file, func, newNode));
/third_party/typescript/src/services/
DtextChanges.ts371 …public replaceRange(sourceFile: SourceFile, range: TextRange, newNode: Node, options: InsertNodeOp…
372 …hanges.push({ kind: ChangeKind.ReplaceWithSingleNode, sourceFile, range, options, node: newNode });
375 …public replaceNode(sourceFile: SourceFile, oldNode: Node, newNode: Node, options: ChangeNodeOption…
376 …eplaceRange(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, options), newNode, options);
379 …public replaceNodeRange(sourceFile: SourceFile, startNode: Node, endNode: Node, newNode: Node, opt…
380 …laceRange(sourceFile, getAdjustedRange(sourceFile, startNode, endNode, options), newNode, options);
408 …ePropertyAssignment(sourceFile: SourceFile, oldNode: PropertyAssignment, newNode: PropertyAssignme…
410 this.replaceNode(sourceFile, oldNode, newNode, { suffix });
413 …public insertNodeAt(sourceFile: SourceFile, pos: number, newNode: Node, options: InsertNodeOptions…
414 this.replaceRange(sourceFile, createRange(pos), newNode, options);
[all …]
/third_party/node/deps/npm/node_modules/postcss-selector-parser/dist/selectors/
Dcontainer.js71 _proto.insertAfter = function insertAfter(oldNode, newNode) { argument
72 newNode.parent = this;
74 this.nodes.splice(oldIndex + 1, 0, newNode);
75 newNode.parent = this;
85 _proto.insertBefore = function insertBefore(oldNode, newNode) { argument
86 newNode.parent = this;
88 this.nodes.splice(oldIndex, 0, newNode);
89 newNode.parent = this;
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_workqueue.c226 STATIC VOID ListAdd(struct list_head *newNode, struct list_head *prev, struct list_head *next) in ListAdd() argument
228 next->prev = newNode; in ListAdd()
229 newNode->next = next; in ListAdd()
230 newNode->prev = prev; in ListAdd()
231 prev->next = newNode; in ListAdd()
235 STATIC VOID WorkListAdd(struct list_head *newNode, struct list_head *head, UINT32 workPri) in WorkListAdd() argument
247 ListAdd(newNode, list->prev, list); in WorkListAdd()
250 STATIC VOID WorkListAddTail(struct list_head *newNode, struct list_head *head) in WorkListAddTail() argument
252 ListAdd(newNode, head->prev, head); in WorkListAddTail()
/third_party/icu/icu4c/source/tools/ctestfw/
Dctest.c176 TestNode *newNode; in createTestNode() local
178 newNode = (TestNode*)malloc(sizeof(TestNode) + (nameLen + 1)); in createTestNode()
180 newNode->test = NULL; in createTestNode()
181 newNode->sibling = NULL; in createTestNode()
182 newNode->child = NULL; in createTestNode()
184 strncpy( newNode->name, name, nameLen ); in createTestNode()
185 newNode->name[nameLen] = 0; in createTestNode()
187 return newNode; in createTestNode()
210 TestNode *newNode; in addTest() local
216 newNode = addTestNode( *root, name ); in addTest()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/ctestfw/
Dctest.c174 TestNode *newNode; in createTestNode() local
176 newNode = (TestNode*)malloc(sizeof(TestNode) + (nameLen + 1)); in createTestNode()
178 newNode->test = NULL; in createTestNode()
179 newNode->sibling = NULL; in createTestNode()
180 newNode->child = NULL; in createTestNode()
182 strncpy( newNode->name, name, nameLen ); in createTestNode()
183 newNode->name[nameLen] = 0; in createTestNode()
185 return newNode; in createTestNode()
208 TestNode *newNode; in addTest() local
214 newNode = addTestNode( *root, name ); in addTest()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTrieBuilder.java141 private final Node registerNode(Node newNode) { in registerNode() argument
143 return newNode; in registerNode()
146 Node oldNode=nodes.get(newNode); in registerNode()
152 oldNode=nodes.put(newNode, newNode); in registerNode()
154 return newNode; in registerNode()
172 ValueNode newNode=new ValueNode(value); in registerFinalValue() local
175 oldNode=nodes.put(newNode, newNode); in registerFinalValue()
177 return newNode; in registerFinalValue()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DStringTrieBuilder.java140 private final Node registerNode(Node newNode) { in registerNode() argument
142 return newNode; in registerNode()
145 Node oldNode=nodes.get(newNode); in registerNode()
151 oldNode=nodes.put(newNode, newNode); in registerNode()
153 return newNode; in registerNode()
171 ValueNode newNode=new ValueNode(value); in registerFinalValue() local
174 oldNode=nodes.put(newNode, newNode); in registerFinalValue()
176 return newNode; in registerFinalValue()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DScalarizeVecAndMatConstructorArgs.cpp140 TIntermBinary *newNode = in scalarizeArgs() local
142 sequence->push_back(newNode); in scalarizeArgs()
161 TIntermBinary *newNode = in scalarizeArgs() local
163 sequence->push_back(newNode); in scalarizeArgs()
/third_party/ffmpeg/libavcodec/
Dcrystalhd.c194 OpaqueList *newNode = av_mallocz(sizeof (OpaqueList)); in opaque_list_push() local
195 if (!newNode) { in opaque_list_push()
201 newNode->fake_timestamp = TIMESTAMP_UNIT; in opaque_list_push()
202 priv->head = newNode; in opaque_list_push()
204 newNode->fake_timestamp = priv->tail->fake_timestamp + TIMESTAMP_UNIT; in opaque_list_push()
205 priv->tail->next = newNode; in opaque_list_push()
207 priv->tail = newNode; in opaque_list_push()
208 newNode->reordered_opaque = reordered_opaque; in opaque_list_push()
210 return newNode->fake_timestamp; in opaque_list_push()
/third_party/skia/infra/bots/gen_tasks_logic/
Dcompile_cas.go107 func newNode(name string) *node { func
141 child = newNode(name)
192 root: newNode(""),
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DSeparateCompoundExpressions.cpp346 auto &newNode = *new TIntermDeclaration(); in visitDeclarationPost() local
347 newNode.appendDeclarator( in visitDeclarationPost()
349 pushStmt(newNode); in visitDeclarationPost()
439 TIntermBinary *newNode; in visitBinaryPost() local
442 newNode = &node; in visitBinaryPost()
446 newNode = new TIntermBinary(op, newLeft, newRight); in visitBinaryPost()
448 pushBinding(node, *newNode); in visitBinaryPost()
DRewriteUnaddressableReferences.cpp330 auto *newNode = asNode<TIntermTyped>(rebuild(node).single()); in visitBinaryPre() local
331 ASSERT(newNode); in visitBinaryPre()
336 return *newNode; in visitBinaryPre()
/third_party/node/deps/npm/node_modules/postcss-selector-parser/dist/
Dparser.js364 this.newNode(new _attribute["default"](node));
501 return _this3.newNode(n);
568 return this.newNode(node);
588 this.newNode(new _comment["default"]({
635 this.newNode(new _nesting["default"]({
691 this.newNode(new _string["default"]({
716 _this4.newNode(new _pseudo["default"]({
748 this.newNode(new _string["default"]({
762 this.newNode(new _universal["default"]({
837 _this5.newNode(node, namespace);
[all …]
/third_party/typescript/src/testRunner/unittests/
DcustomTransforms.ts146 const newNode = factory.createIdentifier("changed");
147 setSourceMapRange(newNode, {
153 return newNode;
/third_party/typescript/src/services/codefixes/
DfixExpectedComma.ts43 const newNode = factory.createToken(SyntaxKind.CommaToken); constant
44 changes.replaceNode(sourceFile, node, newNode);
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.cpp8251 TIntermTyped *newNode; in addConstructor() local
8256 newNode = constructAggregate(node, elementType, 1, node->getLoc()); in addConstructor()
8258 newNode = constructAggregate(node, *(*memberTypes).type, 1, node->getLoc()); in addConstructor()
8260 newNode = constructBuiltIn(type, op, node->getAsTyped(), node->getLoc(), false); in addConstructor()
8262 if (newNode && (type.isArray() || op == EOpConstructStruct)) in addConstructor()
8263 newNode = intermediate.setAggregateOperator(newNode, EOpConstructStruct, type, loc); in addConstructor()
8265 return newNode; in addConstructor()
8283 newNode = constructAggregate(*p, elementType, paramCount+1, node->getLoc()); in addConstructor()
8285newNode = constructAggregate(*p, *(memberTypes[paramCount]).type, paramCount+1, node->getLoc()); in addConstructor()
8287 newNode = constructBuiltIn(type, op, (*p)->getAsTyped(), node->getLoc(), true); in addConstructor()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermRebuild.cpp209 auto *newNode = traverseAnyAs<Node>(node); in rebuildInPlaceImpl() local
210 if (!newNode) in rebuildInPlaceImpl()
215 if (newNode != &node) in rebuildInPlaceImpl()
217 *node.getSequence() = std::move(*newNode->getSequence()); in rebuildInPlaceImpl()
275 for (TIntermNode *newNode : result.mMulti) in traverseAggregateBaseChildren()
277 if (newNode) in traverseAggregateBaseChildren()
279 newChildren.push_back(newNode); in traverseAggregateBaseChildren()

12