Home
last modified time | relevance | path

Searched refs:createNodeArray (Results 1 – 25 of 43) sorted by relevance

12

/third_party/typescript/src/testRunner/unittests/
Dasserts.ts4 …t.throws(() => assert.deepEqual(factory.createNodeArray([factory.createIdentifier("A")]), factory.
5 …rt.throws(() => assert.deepEqual(factory.createNodeArray([], /*hasTrailingComma*/ true), factory.c…
6 …assert.deepEqual(factory.createNodeArray([factory.createIdentifier("A")], /*hasTrailingComma*/ tru…
Dtransform.ts234 factory.createNodeArray([
251 const statements = factory.createNodeArray([...block.statements]);
Dprinter.ts156 factory.createNodeArray([factory.createToken(SyntaxKind.PublicKeyword)]),
/third_party/typescript/src/compiler/transformers/
Ddeclarations.ts289 …const statements = isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS…
293 …factory.createModuleBlock(setTextRange(factory.createNodeArray(transformAndReplaceLatePaintedState…
298 …const updated = isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS(so…
342 combinedStatements = factory.createNodeArray(transformDeclarationsForJS(node));
348 …combinedStatements = setTextRange(factory.createNodeArray(transformAndReplaceLatePaintedStatements…
352 …combinedStatements = setTextRange(factory.createNodeArray([...combinedStatements, createEmptyExpor…
653 return factory.createNodeArray(newParams, params.hasTrailingComma);
682 return factory.createNodeArray(newParams || emptyArray);
1277 …(clean as Mutable<FunctionDeclaration>).illegalDecorators = factory.createNodeArray(reservedDecora…
1334 …aration as Mutable<FunctionDeclaration>).illegalDecorators = factory.createNodeArray(reservedDecor…
[all …]
Des2018.ts444 …const result = factory.updateSourceFile(visited, setTextRange(factory.createNodeArray(statement), …
505 …const elements = result ? setTextRange(factory.createNodeArray(result), node.elements) : node.elem…
636 setTextRange(factory.createNodeArray(statements), statementsLocation),
679 setTextRange(factory.createNodeArray(statements), statementsLocation),
1092 …return factory.updateBlock(block, setTextRange(factory.createNodeArray(statements), block.statemen…
Des2015.ts574 … setTextRange(factory.createNodeArray(concatenate(prologue, statements)), node.statements)
891 …const block = factory.createBlock(setTextRange(factory.createNodeArray(statements), /*location*/ n…
979 const statementsArray = factory.createNodeArray(statements);
1149 factory.createNodeArray(
2044 …const block = factory.createBlock(setTextRange(factory.createNodeArray(statements), statementsLoca…
2136 …const elements = result ? setTextRange(factory.createNodeArray(result), node.elements) : node.elem…
2507 …return factory.updateBlock(statement, setTextRange(factory.createNodeArray(concatenate(statements,…
2519 factory.createNodeArray(statements),
3982 …transformAndSpreadElements(factory.createNodeArray([factory.createVoidZero(), ...node.arguments!])…
4102 visitNodes(factory.createNodeArray(chunk, hasTrailingComma), visitor, isExpression),
Dts.ts786 return setTextRange(factory.createNodeArray(members), /*location*/ node.members);
803 …const result = factory.createNodeArray(concatenate(concatenate(decorators, parameterDecorators), m…
1124 …const block = factory.createBlock(setTextRange(factory.createNodeArray(statements), body.statement…
1594 setTextRange(factory.createNodeArray(statements), /*location*/ node.members),
1925 factory.createNodeArray(statements),
DlegacyDecorators.ts107 members = setTextRange(factory.createNodeArray([
/third_party/typescript/src/compiler/factory/
DparenthesizerRules.ts355 … return setTextRange(factory.createNodeArray(result, elements.hasTrailingComma), elements);
447 … return factory.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfUnionType));
465 … return factory.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfIntersectionType));
545 return factory.createNodeArray(sameMap(types, parenthesizeElementTypeOfTupleType));
600 … return factory.createNodeArray(sameMap(typeArguments, parenthesizeOrdinalTypeArgument));
DnodeFactory.ts49 createNodeArray,
546 …function createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): Nod…
669 node.parameters = createNodeArray(parameters);
745 node.members = createNodeArray(members);
885 node.typeArguments = createNodeArray(typeArguments);
1803 …ts = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments…
1944 node.members = createNodeArray(members);
1974 …node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)…
2039 node.types = factory.createNodeArray(parenthesize(types));
2110 node.templateSpans = createNodeArray(templateSpans);
[all …]
Dutilities.ts153 …return factory.updateBlock(dest, setTextRange(factory.createNodeArray([source, ...dest.statements]…
156 return factory.createBlock(factory.createNodeArray([dest, source]), /*multiLine*/ true);
1243 return setTextRange(factory.createNodeArray([], nodes.hasTrailingComma), nodes);
/third_party/typescript/src/services/codefixes/
DfixImportNonExportedMember.ts137 …se && isNamedExports(node.exportClause) ? node.exportClause.elements : factory.createNodeArray([]);
142 …factory.createNodeArray([...namedExports, ...createExportSpecifiers(names, allowTypeModifier)], /*…
152 …return factory.createNodeArray(map(names, n => factory.createExportSpecifier(allowTypeModifier && …
Dhelpers.ts91 …const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags…
272 …typeParameters = setTextRange(factory.createNodeArray(newTypeParameters, typeParameters.hasTrailin…
293 …parameters = setTextRange(factory.createNodeArray(newParameters, parameters.hasTrailingComma), par…
346 ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags))
DfixAwaitInSyncFunction.ts78 …File, returnType, factory.createTypeReferenceNode("Promise", factory.createNodeArray([returnType])…
DaddMissingAsync.ts57 …factory.createNodeArray(factory.createModifiersFromModifierFlags(getSyntacticModifierFlags(inserti…
DannotateWithTypeFromJSDoc.ts149 … args = factory.createNodeArray([factory.createTypeReferenceNode("any", emptyArray)]);
/third_party/typescript/src/compiler/transformers/module/
DesnextAnd2015.ts37 …setTextRange(factory.createNodeArray(insertStatementsAfterCustomPrologue(result.statements.slice()…
45 …setTextRange(factory.createNodeArray([...result.statements, createEmptyExports(factory)]), result.…
62 setTextRange(factory.createNodeArray(statements), node.statements));
Dmodule.ts123 …const updated = factory.updateSourceFile(node, setTextRange(factory.createNodeArray(statements), n…
166 factory.createNodeArray([
321 factory.createNodeArray([
/third_party/typescript/src/services/refactors/
DconvertParamsToDestructuredObject.ts427 parameters = factory.createNodeArray(parameters.slice(1), parameters.hasTrailingComma);
500 return factory.createNodeArray([newThisParameter, objectParameter]);
502 return factory.createNodeArray([objectParameter]);
DconvertOverloadListToSingleSignature.ts124 return factory.createNodeArray([
DextractType.ts249 …atement, factory.createJSDocComment(/* comment */ undefined, factory.createNodeArray(concatenate<J…
/third_party/typescript/src/compiler/
Dparser.ts1220 statements = createNodeArray([], pos, pos);
1276 statements = createNodeArray([statement], pos);
1508 …return factory.updateSourceFile(sourceFile, setTextRange(factory.createNodeArray(statements), sour…
2273 …function createNodeArray<T extends Node>(elements: T[], pos: number, end?: number, hasTrailingComm…
2274 const array = factory.createNodeArray(elements, hasTrailingComma);
2789 return createNodeArray(list, listPos);
3209 return createNodeArray(list, listPos, /*end*/ undefined, commaStart >= 0);
3221 const list = createNodeArray<T>([], getNodePos()) as MissingList<T>;
3314 return createNodeArray(list, pos);
3348 return createNodeArray(list, pos);
[all …]
/third_party/typescript/src/services/
DsignatureHelp.ts620 …const params = factory.createNodeArray([...thisParameter, ...map(paramList, param => checker.symbo…
632 …const args = factory.createNodeArray(candidateSignature.typeParameters.map(p => checker.typeParame…
DtextChanges.ts499 factory.createNodeArray(intersperse(comments, factory.createJSDocText("\n")));
503 …factory.createJSDocComment(this.createJSDocText(sourceFile, node), factory.createNodeArray(tags)));
1167 const nodeArray = visited === nodes ? factory.createNodeArray(visited.slice(0)) : visited;
/third_party/typescript/src/deprecatedCompat/4.0/
DnodeFactoryTopLevelExports.ts12 export const createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation); constant
1221 …sBracketed, typeExpression, /*isNameFirst*/ false, comment ? factory.createNodeArray([factory.crea…

12