/third_party/typescript/src/testRunner/unittests/ |
D | asserts.ts | 4 …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…
|
D | transform.ts | 213 factory.createNodeArray([ 230 const statements = factory.createNodeArray([...block.statements]);
|
D | printer.ts | 158 factory.createNodeArray([factory.createToken(SyntaxKind.PublicKeyword)]),
|
/third_party/typescript/src/compiler/transformers/ |
D | declarations.ts | 262 …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 …]
|
D | es2018.ts | 443 …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…
|
D | es2015.ts | 537 … 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),
|
D | classFields.ts | 588 return setTextRange(factory.createNodeArray(members), /*location*/ node.members); 701 factory.createNodeArray(statements),
|
D | ts.ts | 923 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/ |
D | esnextAnd2015.ts | 31 …setTextRange(factory.createNodeArray([...result.statements, createEmptyExports(factory)]), result.… 48 setTextRange(factory.createNodeArray(statements), node.statements));
|
D | module.ts | 122 …const updated = factory.updateSourceFile(node, setTextRange(factory.createNodeArray(statements), n… 165 factory.createNodeArray([ 320 factory.createNodeArray([
|
/third_party/typescript/src/compiler/factory/ |
D | parenthesizerRules.ts | 318 … return setTextRange(factory.createNodeArray(result, elements.hasTrailingComma), elements); 390 return factory.createNodeArray(sameMap(members, parenthesizeMemberOfElementType)); 400 … return factory.createNodeArray(sameMap(typeArguments, parenthesizeOrdinalTypeArgument));
|
D | nodeFactory.ts | 45 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 …]
|
D | utilities.ts | 153 …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/ |
D | helpers.ts | 44 … 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))
|
D | fixAwaitInSyncFunction.ts | 76 …File, returnType, factory.createTypeReferenceNode("Promise", factory.createNodeArray([returnType])…
|
D | addMissingAsync.ts | 57 …factory.createNodeArray(factory.createModifiersFromModifierFlags(getSyntacticModifierFlags(inserti…
|
D | annotateWithTypeFromJSDoc.ts | 149 … args = factory.createNodeArray([factory.createTypeReferenceNode("any", emptyArray)]);
|
D | generateAccessors.ts | 87 …return modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFl…
|
D | fixAddMissingMember.ts | 291 …/*modifiers*/ modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(mod…
|
/third_party/typescript/src/services/refactors/ |
D | convertParamsToDestructuredObject.ts | 427 parameters = factory.createNodeArray(parameters.slice(1), parameters.hasTrailingComma); 502 return factory.createNodeArray([newThisParameter, objectParameter]); 504 return factory.createNodeArray([objectParameter]);
|
D | convertOverloadListToSingleSignature.ts | 127 return factory.createNodeArray([
|
D | extractType.ts | 240 …atement, factory.createJSDocComment(/* comment */ undefined, factory.createNodeArray(concatenate<J…
|
/third_party/typescript/src/compiler/ |
D | parser.ts | 885 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/ |
D | signatureHelp.ts | 618 …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/ |
D | deprecations.ts | 23 export const createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation); constant
|