Home
last modified time | relevance | path

Searched refs:importAdder (Results 1 – 9 of 9) sorted by relevance

/third_party/typescript/src/services/codefixes/
Dhelpers.ts16 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 …]
DfixAddMissingMember.ts437 …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 …]
DinferFromUsage.ts117 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 …]
DfixClassDoesntImplementInheritedAbstractMember.ts44 … const importAdder = createImportAdder(sourceFile, context.program, preferences, context.host); constant
45 …abstractAndNonPrivateExtendsSymbols, sourceFile, context, preferences, importAdder, member => chan…
46 importAdder.writeFixes(changeTracker);
DfixClassIncorrectlyImplementsInterface.ts66 … const importAdder = createImportAdder(sourceFile, context.program, preferences, context.host); constant
67 …ndNotExistedInHeritageClauseMembers, sourceFile, context, preferences, importAdder, member => inse…
68 importAdder.writeFixes(changeTracker);
DfixAddMissingConstraint.ts88 const importAdder = createImportAdder(sourceFile, program, preferences, host); constant
89 …const typeNode = typeToAutoImportableTypeNode(checker, importAdder, constraint, /*contextNode*/ un…
92 importAdder.writeFixes(changes);
DimportFixes.ts36 …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/
Dcompletions.ts768 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/
DextractSymbol.ts859 …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);