Home
last modified time | relevance | path

Searched refs:createNodeArray (Results 1 – 25 of 46) 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.ts213 factory.createNodeArray([
230 const statements = factory.createNodeArray([...block.statements]);
Dprinter.ts158 factory.createNodeArray([factory.createToken(SyntaxKind.PublicKeyword)]),
/third_party/typescript/src/compiler/transformers/
Ddeclarations.ts262 …const statements = isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS…
267 …factory.createModuleBlock(setTextRange(factory.createNodeArray(transformAndReplaceLatePaintedState…
272 …const updated = isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS(so…
316 combinedStatements = factory.createNodeArray(transformDeclarationsForJS(node));
322 …combinedStatements = setTextRange(factory.createNodeArray(transformAndReplaceLatePaintedStatements…
326 …combinedStatements = setTextRange(factory.createNodeArray([...combinedStatements, createEmptyExpor…
607 return factory.createNodeArray(newParams, params.hasTrailingComma);
637 return factory.createNodeArray(newParams || emptyArray);
1327 … lateStatements = factory.createNodeArray([...lateStatements, createEmptyExports(factory)]);
1369 const modifiers = factory.createNodeArray(ensureModifiers(input));
[all …]
Des2018.ts443 …const result = factory.updateSourceFile(visited, setTextRange(factory.createNodeArray(statement), …
504 …const elements = result ? setTextRange(factory.createNodeArray(result), node.elements) : node.elem…
635 setTextRange(factory.createNodeArray(statements), statementsLocation),
664 setTextRange(factory.createNodeArray(statements), statementsLocation),
1015 …return factory.updateBlock(block, setTextRange(factory.createNodeArray(statements), block.statemen…
Des2015.ts537 … setTextRange(factory.createNodeArray(concatenate(prologue, statements)), node.statements)
849 …const block = factory.createBlock(setTextRange(factory.createNodeArray(statements), /*location*/ n…
938 const statementsArray = factory.createNodeArray(statements);
1094 factory.createNodeArray(
1954 …const block = factory.createBlock(setTextRange(factory.createNodeArray(statements), statementsLoca…
2046 …const elements = result ? setTextRange(factory.createNodeArray(result), node.elements) : node.elem…
2417 …return factory.updateBlock(statement, setTextRange(factory.createNodeArray(concatenate(statements,…
2429 factory.createNodeArray(statements),
3881 …transformAndSpreadElements(factory.createNodeArray([factory.createVoidZero(), ...node.arguments!])…
3981 visitNodes(factory.createNodeArray(chunk, hasTrailingComma), visitor, isExpression),
DclassFields.ts588 return setTextRange(factory.createNodeArray(members), /*location*/ node.members);
701 factory.createNodeArray(statements),
Dts.ts923 return setTextRange(factory.createNodeArray(members), /*location*/ node.members);
1971 …const block = factory.createBlock(setTextRange(factory.createNodeArray(statements), body.statement…
2434 setTextRange(factory.createNodeArray(statements), /*location*/ node.members),
2764 factory.createNodeArray(statements),
/third_party/typescript/src/compiler/transformers/module/
DesnextAnd2015.ts31 …setTextRange(factory.createNodeArray([...result.statements, createEmptyExports(factory)]), result.…
48 setTextRange(factory.createNodeArray(statements), node.statements));
Dmodule.ts122 …const updated = factory.updateSourceFile(node, setTextRange(factory.createNodeArray(statements), n…
165 factory.createNodeArray([
320 factory.createNodeArray([
/third_party/typescript/src/compiler/factory/
DparenthesizerRules.ts318 … return setTextRange(factory.createNodeArray(result, elements.hasTrailingComma), elements);
390 return factory.createNodeArray(sameMap(members, parenthesizeMemberOfElementType));
400 … return factory.createNodeArray(sameMap(typeArguments, parenthesizeOrdinalTypeArgument));
DnodeFactory.ts45 createNodeArray,
515 …function createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): Nod…
636 node.parameters = createNodeArray(parameters);
720 node.members = createNodeArray(members);
862 node.typeArguments = createNodeArray(typeArguments);
1660 …ts = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments…
1791 node.members = createNodeArray(members);
1821 node.elements = createNodeArray(elements);
1957 node.templateSpans = createNodeArray(templateSpans);
2091 node.elements = createNodeArray(elements);
[all …]
Dutilities.ts153 …return factory.updateBlock(dest, setTextRange(factory.createNodeArray([source, ...dest.statements]…
156 return factory.createBlock(factory.createNodeArray([dest, source]), /*multiLine*/ true);
/third_party/typescript/src/services/codefixes/
Dhelpers.ts44 … const modifiers = visibilityModifier ? factory.createNodeArray([visibilityModifier]) : undefined;
203 …typeParameters = setTextRange(factory.createNodeArray(newTypeParameters, typeParameters.hasTrailin…
225 …parameters = setTextRange(factory.createNodeArray(newParameters, parameters.hasTrailingComma), par…
273 ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags))
DfixAwaitInSyncFunction.ts76 …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)]);
DgenerateAccessors.ts87 …return modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFl…
DfixAddMissingMember.ts291 …/*modifiers*/ modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(mod…
/third_party/typescript/src/services/refactors/
DconvertParamsToDestructuredObject.ts427 parameters = factory.createNodeArray(parameters.slice(1), parameters.hasTrailingComma);
502 return factory.createNodeArray([newThisParameter, objectParameter]);
504 return factory.createNodeArray([objectParameter]);
DconvertOverloadListToSingleSignature.ts127 return factory.createNodeArray([
DextractType.ts240 …atement, factory.createJSDocComment(/* comment */ undefined, factory.createNodeArray(concatenate<J…
/third_party/typescript/src/compiler/
Dparser.ts885 statements = createNodeArray([], pos, pos);
921 statements = createNodeArray([statement], pos);
1153 …return factory.updateSourceFile(sourceFile, setTextRange(factory.createNodeArray(statements), sour…
1715 …function createNodeArray<T extends Node>(elements: T[], pos: number, end?: number, hasTrailingComm…
1716 const array = factory.createNodeArray(elements, hasTrailingComma);
2227 return createNodeArray(list, listPos);
2632 return createNodeArray(list, listPos, /*end*/ undefined, commaStart >= 0);
2644 const list = createNodeArray<T>([], getNodePos()) as MissingList<T>;
2737 return createNodeArray(list, pos);
2771 return createNodeArray(list, pos);
[all …]
/third_party/typescript/src/services/
DsignatureHelp.ts618 …const params = factory.createNodeArray([...thisParameter, ...map(paramList, param => checker.symbo…
631 …const args = factory.createNodeArray(candidateSignature.typeParameters.map(p => checker.typeParame…
/third_party/typescript/src/deprecatedCompat/
Ddeprecations.ts23 export const createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation); constant

12