Home
last modified time | relevance | path

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

123

/third_party/parse5/packages/parse5-htmlparser2-tree-adapter/lib/
Dindex.js134 const appendChild = (exports.appendChild = function(parentNode, newNode) {
138 prev.next = newNode;
139 newNode.prev = prev;
142 parentNode.children.push(newNode);
143 newNode.parent = parentNode;
146 const insertBefore = (exports.insertBefore = function(parentNode, newNode, referenceNode) {
151 prev.next = newNode;
152 newNode.prev = prev;
155 referenceNode.prev = newNode;
156 newNode.next = referenceNode;
[all …]
/third_party/parse5/scripts/generate-named-entity-data/
Dradix-tree.js43 const newNode = new Node(data);
46 node.addEdge(key, filter, newNode);
48 node.addNode(key, newNode);
66 const newNode = new Node(data);
70 edge.node = newNode;
72 edge.parent.addNode(edge.parentKey, newNode);
75 return newNode;
/third_party/parse5/packages/parse5/lib/tree-adapters/
Ddefault.js49 const appendChild = (exports.appendChild = function(parentNode, newNode) {
50 parentNode.childNodes.push(newNode);
51 newNode.parentNode = parentNode;
54 const insertBefore = (exports.insertBefore = function(parentNode, newNode, referenceNode) {
57 parentNode.childNodes.splice(insertionIdx, 0, newNode);
58 newNode.parentNode = parentNode;
/third_party/typescript/src/testRunner/unittests/services/
DtextChanges.ts228 const newNode = createTestVariableDeclaration("z1"); constant
229 …nge(sourceFile, { pos: sourceFile.text.indexOf("y"), end: sourceFile.text.indexOf(";") }, newNode);
239 const newNode = createTestVariableDeclaration("z1"); constant
240 changeTracker.replaceNode(sourceFile, findChild("y", sourceFile), newNode);
649 for (const newNode of newNodes) { constant
650 changeTracker.insertNodeAfter(sourceFile, insertAfter, newNode);
705 const newNode = factory.createPropertyDeclaration( constant
712 changeTracker.insertNodeAfter(sourceFile, findChild("x", sourceFile), newNode);
723 const newNode = factory.createPropertyDeclaration( constant
730 changeTracker.insertNodeAfter(sourceFile, findChild("x", sourceFile), newNode);
[all …]
/third_party/flutter/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/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==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/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/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DCommandGraph.cpp820 CommandGraphNode *newNode = allocateNode(function); in allocateBarrierNode() local
821 newNode->setDiagnosticInfo(resourceType, resourceID); in allocateBarrierNode()
822 setNewBarrier(newNode); in allocateBarrierNode()
824 return newNode; in allocateBarrierNode()
951 CommandGraphNode *newNode = allocateBarrierNode(CommandGraphNodeFunction::BeginQuery, in beginQuery() local
953 newNode->setQueryPool(queryPool, queryIndex); in beginQuery()
958 CommandGraphNode *newNode = in endQuery() local
960 newNode->setQueryPool(queryPool, queryIndex); in endQuery()
965 CommandGraphNode *newNode = allocateBarrierNode(CommandGraphNodeFunction::WriteTimestamp, in writeTimestamp() local
967 newNode->setQueryPool(queryPool, queryIndex); in writeTimestamp()
[all …]
/third_party/typescript/src/services/
DtextChanges.ts320 …public replaceRange(sourceFile: SourceFile, range: TextRange, newNode: Node, options: InsertNodeOp…
321 …hanges.push({ kind: ChangeKind.ReplaceWithSingleNode, sourceFile, range, options, node: newNode });
324 …public replaceNode(sourceFile: SourceFile, oldNode: Node, newNode: Node, options: ChangeNodeOption…
325 …eplaceRange(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, options), newNode, options);
328 …public replaceNodeRange(sourceFile: SourceFile, startNode: Node, endNode: Node, newNode: Node, opt…
329 …laceRange(sourceFile, getAdjustedRange(sourceFile, startNode, endNode, options), newNode, options);
353 …ePropertyAssignment(sourceFile: SourceFile, oldNode: PropertyAssignment, newNode: PropertyAssignme…
355 this.replaceNode(sourceFile, oldNode, newNode, { suffix });
358 …public insertNodeAt(sourceFile: SourceFile, pos: number, newNode: Node, options: InsertNodeOptions…
359 this.replaceRange(sourceFile, createRange(pos), newNode, options);
[all …]
/third_party/typescript/src/services/refactors/
DconvertArrowFunctionOrFunctionExpression.ts201 …const newNode = factory.createFunctionExpression(func.modifiers, func.asteriskToken, /* name */ un… constant
202 return textChanges.ChangeTracker.with(context, t => t.replaceNode(file, func, newNode));
211 …const newNode = factory.createFunctionDeclaration(func.decorators, statement.modifiers, func.aster… constant
214 … return textChanges.ChangeTracker.with(context, t => t.replaceNode(file, statement, newNode));
219 t.insertNodeAfter(file, statement, newNode);
239 …const newNode = factory.createArrowFunction(func.modifiers, func.typeParameters, func.parameters, … constant
240 return textChanges.ChangeTracker.with(context, t => t.replaceNode(file, func, newNode));
/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/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/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DScalarizeVecAndMatConstructorArgs.cpp146 TIntermBinary *newNode = ConstructVectorIndexBinaryNode(symbolNode, index); in scalarizeArgs() local
147 sequence->push_back(newNode); in scalarizeArgs()
168 TIntermBinary *newNode = in scalarizeArgs() local
170 sequence->push_back(newNode); in scalarizeArgs()
/third_party/icu/icu4c/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/flutter/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/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/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/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/ffmpeg/libavcodec/
Dcrystalhd.c188 OpaqueList *newNode = av_mallocz(sizeof (OpaqueList)); in opaque_list_push() local
189 if (!newNode) { in opaque_list_push()
195 newNode->fake_timestamp = TIMESTAMP_UNIT; in opaque_list_push()
196 priv->head = newNode; in opaque_list_push()
198 newNode->fake_timestamp = priv->tail->fake_timestamp + TIMESTAMP_UNIT; in opaque_list_push()
199 priv->tail->next = newNode; in opaque_list_push()
201 priv->tail = newNode; in opaque_list_push()
202 newNode->reordered_opaque = reordered_opaque; in opaque_list_push()
204 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/typescript/src/services/codefixes/
DfixExpectedComma.ts43 const newNode = factory.createToken(SyntaxKind.CommaToken); constant
44 changes.replaceNode(sourceFile, node, newNode);
/third_party/typescript/src/testRunner/unittests/
DcustomTransforms.ts146 const newNode = factory.createIdentifier("changed");
147 setSourceMapRange(newNode, {
153 return 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()
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.cpp7023 TIntermTyped *newNode; in addConstructor() local
7028 newNode = constructAggregate(node, elementType, 1, node->getLoc()); in addConstructor()
7030 newNode = constructAggregate(node, *(*memberTypes).type, 1, node->getLoc()); in addConstructor()
7032 newNode = constructBuiltIn(type, op, node->getAsTyped(), node->getLoc(), false); in addConstructor()
7034 if (newNode && (type.isArray() || op == EOpConstructStruct)) in addConstructor()
7035 newNode = intermediate.setAggregateOperator(newNode, EOpConstructStruct, type, loc); in addConstructor()
7037 return newNode; in addConstructor()
7055 newNode = constructAggregate(*p, elementType, paramCount+1, node->getLoc()); in addConstructor()
7057newNode = constructAggregate(*p, *(memberTypes[paramCount]).type, paramCount+1, node->getLoc()); in addConstructor()
7059 newNode = constructBuiltIn(type, op, (*p)->getAsTyped(), node->getLoc(), true); in addConstructor()
[all …]

123