/third_party/typescript/src/services/codefixes/ |
D | helpers.ts | 16 importAdder: ImportAdder | undefined, 21 …mberSymbol(symbol, classDeclaration, sourceFile, context, preferences, importAdder, addClassElemen… 56 importAdder: ImportAdder | undefined, 102 if (importAdder) { 106 importSymbols(importAdder, importableReference.symbols); 124 if (importAdder) { 128 importSymbols(importAdder, importableReference.symbols); 194 …reserveOptional & PreserveOptionalFlags.Method), enclosingDeclaration, importAdder) as MethodDecla… 226 importAdder: ImportAdder | undefined 244 if (importAdder) { [all …]
|
D | fixAddMissingMember.ts | 437 …const importAdder = createImportAdder(sourceFile, context.program, context.preferences, context.ho… constant 439 …laration = createSignatureDeclarationFromCallExpression(kind, context, importAdder, callExpression… 447 importAdder.writeFixes(changes); 475 …const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, co… constant 477 …DeclarationFromCallExpression(SyntaxKind.FunctionDeclaration, context, importAdder, info.call, idT… 478 … /*modifiers*/ undefined, /*optional*/ undefined, /*enclosingDeclaration*/ undefined, importAdder); 486 importAdder.writeFixes(changes); 490 …const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, co… constant 496 …const value = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeO… 506 importAdder.writeFixes(changes); [all …]
|
D | inferFromUsage.ts | 117 const importAdder = createImportAdder(sourceFile, program, preferences, host); constant 124 …annotateVariableDeclaration(changes, importAdder, sourceFile, parent, program, host, cancellationT… 125 importAdder.writeFixes(changes); 136 importAdder.writeFixes(changes); 144 …annotateVariableDeclaration(changes, importAdder, getSourceFileOfNode(symbol.valueDeclaration), sy… 145 importAdder.writeFixes(changes); 162 …annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellat… 170 …annotateParameters(changes, importAdder, sourceFile, param, containingFunction, program, host, can… 179 …annotate(changes, importAdder, sourceFile, containingFunction, inferTypeForVariableFromUsage(conta… 187 …annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellat… [all …]
|
D | fixClassDoesntImplementInheritedAbstractMember.ts | 44 … const importAdder = createImportAdder(sourceFile, context.program, preferences, context.host); constant 45 …abstractAndNonPrivateExtendsSymbols, sourceFile, context, preferences, importAdder, member => chan… 46 importAdder.writeFixes(changeTracker);
|
D | fixClassIncorrectlyImplementsInterface.ts | 66 … const importAdder = createImportAdder(sourceFile, context.program, preferences, context.host); constant 67 …ndNotExistedInHeritageClauseMembers, sourceFile, context, preferences, importAdder, member => inse… 68 importAdder.writeFixes(changeTracker);
|
D | fixAddMissingConstraint.ts | 88 const importAdder = createImportAdder(sourceFile, program, preferences, host); constant 89 …const typeNode = typeToAutoImportableTypeNode(checker, importAdder, constraint, /*contextNode*/ un… 92 importAdder.writeFixes(changes);
|
D | importFixes.ts | 36 …const importAdder = createImportAdderWorker(sourceFile, program, /*useAutoImportProvider*/ true, p… constant 37 … eachDiagnostic(context, errorCodes, diag => importAdder.addImportFromDiagnostic(diag, context)); 38 … return createCombinedCodeActions(textChanges.ChangeTracker.with(context, importAdder.writeFixes));
|
/third_party/typescript/src/services/ |
D | completions.ts | 768 let importAdder; 769 …({ insertText, isSnippet, importAdder, replacementSpan } = getEntryForMemberCompletion(host, progr… 771 if (importAdder?.hasFixes()) { 908 …): { insertText: string, isSnippet?: true, importAdder?: codefix.ImportAdder, replacementSpan?: Te… 927 const importAdder = codefix.createImportAdder(sourceFile, program, preferences, host); constant 956 importAdder, 1008 return { insertText, isSnippet, importAdder, replacementSpan }; 1749 const { importAdder } = getEntryForMemberCompletion( constant 1759 if (importAdder) { 1762 importAdder.writeFixes);
|
/third_party/typescript/src/services/refactors/ |
D | extractSymbol.ts | 859 …const importAdder = codefix.createImportAdder(context.file, context.program, context.preferences, … constant 878 …typeNode = codefix.typeToAutoImportableTypeNode(checker, importAdder, type, scope, scriptTarget, N… 979 importAdder.writeFixes(changeTracker);
|