/third_party/typescript/src/services/ |
D | codeFixProvider.ts | 17 … string, changes: FileTextChanges[], description: DiagnosticAndArguments, fixId: {}, fixAllDescrip… 18 …return createCodeFixActionWorker(fixName, diagnosticToString(description), changes, fixId, diagnos… 21 …nWorker(fixName: string, description: string, changes: FileTextChanges[], fixId?: {}, fixAllDescri… 22 …return { fixName, description, changes, fixId, fixAllDescription, commands: command ? [command] : … 30 for (const fixId of reg.fixIds) { constant 31 Debug.assert(!fixIdToRegistration.has(fixId)); 32 fixIdToRegistration.set(fixId, reg); 50 return ({ fixId, fixAllDescription, ...action }: CodeFixAction): CodeFixAction => { 51 return fixAllUnavailable ? action : { ...action, fixId, fixAllDescription }; 63 return fixIdToRegistration.get(cast(context.fixId, isString))!.getAllCodeActions!(context);
|
/third_party/typescript/src/services/codefixes/ |
D | useBigintLiteral.ts | 3 const fixId = "useBigintLiteral"; constant 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Convert_to_a_bigint_numeric_literal, fixId… 16 fixIds: [fixId],
|
D | addMissingInvocationForDecorator.ts | 3 const fixId = "addMissingInvocationForDecorator"; constant 9 …return [createCodeFixAction(fixId, changes, Diagnostics.Call_decorator_expression, fixId, Diagnost… 11 fixIds: [fixId],
|
D | convertConstToLet.ts | 3 const fixId = "fixConvertConstToLet"; constant 12 …return [createCodeFixAction(fixId, changes, Diagnostics.Convert_const_to_let, fixId, Diagnostics.C… 14 fixIds: [fixId]
|
D | fixPropertyAssignment.ts | 3 const fixId = "fixPropertyAssignment"; constant 10 fixIds: [fixId], 15 …return [createCodeFixAction(fixId, changes, [Diagnostics.Change_0_to_1, "=", ":"], fixId, [Diagnos…
|
D | addMissingDeclareProperty.ts | 3 const fixId = "addMissingDeclareProperty"; constant 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Prefix_with_declare, fixId, Diagnostics.Pr… 16 fixIds: [fixId],
|
D | fixUnusedLabel.ts | 3 const fixId = "fixUnusedLabel"; constant 9 …return [createCodeFixAction(fixId, changes, Diagnostics.Remove_unused_label, fixId, Diagnostics.Re… 11 fixIds: [fixId],
|
D | fixConstructorForDerivedNeedSuperCall.ts | 3 const fixId = "constructorForDerivedNeedSuperCall"; constant 11 …return [createCodeFixAction(fixId, changes, Diagnostics.Add_missing_super_call, fixId, Diagnostics… 13 fixIds: [fixId],
|
D | addConvertToUnknownForNonOverlappingTypes.ts | 3 const fixId = "addConvertToUnknownForNonOverlappingTypes"; constant 9 …return [createCodeFixAction(fixId, changes, Diagnostics.Add_unknown_conversion_for_non_overlapping… 11 fixIds: [fixId],
|
D | fixAddMissingNewOperator.ts | 3 const fixId = "addMissingNewOperator"; constant 10 …return [createCodeFixAction(fixId, changes, Diagnostics.Add_missing_new_operator_to_call, fixId, D… 12 fixIds: [fixId],
|
D | fixMissingCallParentheses.ts | 3 const fixId = "fixMissingCallParentheses"; constant 10 fixIds: [fixId], 17 …return [createCodeFixAction(fixId, changes, Diagnostics.Add_missing_call_parentheses, fixId, Diagn…
|
D | fixExpectedComma.ts | 3 const fixId = "fixExpectedComma"; constant 17 fixId, 20 fixId, 24 fixIds: [fixId],
|
D | fixAddModuleReferTypeMissingTypeof.ts | 4 const fixId = fixIdAddMissingTypeof; constant 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Add_missing_typeof, fixId, Diagnostics.Add… 15 fixIds: [fixId],
|
D | addNameToNamelessParameter.ts | 3 const fixId = "addNameToNamelessParameter"; constant 9 …return [createCodeFixAction(fixId, changes, Diagnostics.Add_parameter_name, fixId, Diagnostics.Add… 11 fixIds: [fixId],
|
D | removeUnnecessaryAwait.ts | 3 const fixId = "removeUnnecessaryAwait"; constant 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Remove_unnecessary_await, fixId, Diagnosti… 16 fixIds: [fixId],
|
D | fixNoPropertyAccessFromIndexSignature.ts | 3 const fixId = "fixNoPropertyAccessFromIndexSignature"; constant 10 fixIds: [fixId], 15 …return [createCodeFixAction(fixId, changes, [Diagnostics.Use_element_access_for_0, property.name.t…
|
D | splitTypeOnlyImport.ts | 4 const fixId = "splitTypeOnlyImport"; constant 7 fixIds: [fixId], 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Split_into_two_separate_import_declaration…
|
D | convertToTypeOnlyImport.ts | 4 const fixId = "convertToTypeOnlyImport"; constant 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Convert_to_type_only_import, fixId, Diagno… 16 fixIds: [fixId],
|
D | correctQualifiedNameToIndexedAccessType.ts | 3 const fixId = "correctQualifiedNameToIndexedAccessType"; constant 12 …return [createCodeFixAction(fixId, changes, [Diagnostics.Rewrite_as_the_indexed_access_type_0, new… 14 fixIds: [fixId],
|
D | fixForgottenThisPropertyAccess.ts | 3 const fixId = "forgottenThisPropertyAccess"; constant 19 …return [createCodeFixAction(fixId, changes, [Diagnostics.Add_0_to_unresolved_variable, info.classN… 21 fixIds: [fixId],
|
D | fixIncorrectNamedTupleSyntax.ts | 3 const fixId = "fixIncorrectNamedTupleSyntax"; constant 15 …return [createCodeFixAction(fixId, changes, Diagnostics.Move_labeled_tuple_element_modifiers_to_la… 17 fixIds: [fixId]
|
D | convertLiteralTypeToMappedType.ts | 3 const fixId = "convertLiteralTypeToMappedType"; constant 16 …return [createCodeFixAction(fixId, changes, [Diagnostics.Convert_0_to_1_in_0, constraint, name], f… 18 fixIds: [fixId],
|
D | useDefaultImport.ts | 3 const fixId = "useDefaultImport"; constant 12 …return [createCodeFixAction(fixId, changes, Diagnostics.Convert_to_default_import, fixId, Diagnost… 14 fixIds: [fixId],
|
D | fixClassSuperMustPrecedeThisAccess.ts | 3 const fixId = "classSuperMustPrecedeThisAccess"; constant 13 …return [createCodeFixAction(fixId, changes, Diagnostics.Make_super_call_the_first_statement_in_the… 15 fixIds: [fixId],
|
D | fixClassDoesntImplementInheritedAbstractMember.ts | 7 const fixId = "fixClassDoesntImplementInheritedAbstractMember"; constant 14 … === 0 ? undefined : [createCodeFixAction(fixId, changes, Diagnostics.Implement_inherited_abstract… 16 fixIds: [fixId],
|