/third_party/typescript/src/services/codefixes/ |
D | fixUnusedIdentifier.ts | 27 …return [createDeleteFix(textChanges.ChangeTracker.with(context, t => t.delete(sourceFile, token)),… 30 …const changes = textChanges.ChangeTracker.with(context, t => deleteTypeParameters(t, sourceFile, t… 35 … const changes = textChanges.ChangeTracker.with(context, t => t.delete(sourceFile, importDecl)); 39 …const deletion = textChanges.ChangeTracker.with(context, t => tryDeleteDeclaration(sourceFile, tok… 53 createDeleteFix(textChanges.ChangeTracker.with(context, t => 58 createDeleteFix(textChanges.ChangeTracker.with(context, t => 65 createDeleteFix(textChanges.ChangeTracker.with(context, t => 72 …const changes = textChanges.ChangeTracker.with(context, t => changeInferToUnknown(t, sourceFile, t… 77 const deletion = textChanges.ChangeTracker.with(context, t => 85 …const prefix = textChanges.ChangeTracker.with(context, t => tryPrefixDeclaration(t, errorCode, sou… [all …]
|
D | fixStrictClassInitialization.ts | 65 …const changes = textChanges.ChangeTracker.with(context, t => addDefiniteAssignmentAssertion(t, con… 69 …function addDefiniteAssignmentAssertion(changeTracker: textChanges.ChangeTracker, propertyDeclarat… 83 …const changes = textChanges.ChangeTracker.with(context, t => addUndefinedType(t, context.sourceFil… 87 …function addUndefinedType(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, info: … 106 …const changes = textChanges.ChangeTracker.with(context, t => addInitializer(t, context.sourceFile,… 110 …function addInitializer(changeTracker: textChanges.ChangeTracker, propertyDeclarationSourceFile: S…
|
D | fixImportNonExportedMember.ts | 16 … const changes = textChanges.ChangeTracker.with(context, t => doChange(t, program, info)); 21 return createCombinedCodeActions(textChanges.ChangeTracker.with(context, changes => { 106 …function doChange(changes: textChanges.ChangeTracker, program: Program, { exportName, node, module… 119 …function doChanges(changes: textChanges.ChangeTracker, program: Program, sourceFile: SourceFile, m… 136 …function updateExport(changes: textChanges.ChangeTracker, program: Program, sourceFile: SourceFile… 145 …function createExport(changes: textChanges.ChangeTracker, program: Program, sourceFile: SourceFile…
|
D | fixUnreferenceableDecoratorMetadata.ts | 11 …const namespaceChanges = textChanges.ChangeTracker.with(context, t => importDeclaration.kind === S… 12 …const typeOnlyChanges = textChanges.ChangeTracker.with(context, t => doTypeOnlyImportChange(t, con… 39 …function doTypeOnlyImportChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, import… 67 …function doNamespaceImportChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, impor…
|
D | fixInvalidJsxCharacters.ts | 16 …const changeToExpression = textChanges.ChangeTracker.with(context, t => doChange(t, preferences, s… 17 …const changeToHtmlEntity = textChanges.ChangeTracker.with(context, t => doChange(t, preferences, s… 38 …function doChange(changes: textChanges.ChangeTracker, preferences: UserPreferences, sourceFile: So…
|
D | convertConstToLet.ts | 13 … const changes = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, info.token)); 20 return createCombinedCodeActions(textChanges.ChangeTracker.with(context, changes => { 54 …function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, token: Token<SyntaxK…
|
D | fixAddMissingMember.ts | 36 …const changes = textChanges.ChangeTracker.with(context, t => addObjectLiteralProperties(t, context… 40 … const changes = textChanges.ChangeTracker.with(context, t => addJsxAttributes(t, context, info)); 44 …const changes = textChanges.ChangeTracker.with(context, t => addFunctionDeclaration(t, context, in… 48 …const changes = textChanges.ChangeTracker.with(context, t => addEnumMemberDeclaration(t, context.p… 60 return createCombinedCodeActions(textChanges.ChangeTracker.with(context, changes => { 277 …const changes = textChanges.ChangeTracker.with(context, t => addMissingMemberInJs(t, declSourceFil… 288 …function addMissingMemberInJs(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, cl… 332 …rtyDeclarationChanges = (modifierFlags: ModifierFlags) => textChanges.ChangeTracker.with(context, … 362 …function addPropertyDeclaration(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, … 403 …const changes = textChanges.ChangeTracker.with(context, t => t.insertMemberAtStart(sourceFile, nod… [all …]
|
D | returnValueCorrect.ts | 207 …function addReturnStatement(changes: textChanges.ChangeTracker, sourceFile: SourceFile, expression… 217 …function removeBlockBodyBrace(changes: textChanges.ChangeTracker, sourceFile: SourceFile, declarat… 225 …function wrapBlockWithParen(changes: textChanges.ChangeTracker, sourceFile: SourceFile, declaratio… 230 …const changes = textChanges.ChangeTracker.with(context, t => addReturnStatement(t, context.sourceF… 235 …const changes = textChanges.ChangeTracker.with(context, t => removeBlockBodyBrace(t, context.sourc… 240 …const changes = textChanges.ChangeTracker.with(context, t => wrapBlockWithParen(t, context.sourceF…
|
D | generateAccessors.ts | 24 const changeTracker = textChanges.ChangeTracker.fromContext(context); 185 …function updatePropertyDeclaration(changeTracker: textChanges.ChangeTracker, file: SourceFile, dec… 197 …function updatePropertyAssignmentDeclaration(changeTracker: textChanges.ChangeTracker, file: Sourc… 202 …function updateFieldDeclaration(changeTracker: textChanges.ChangeTracker, file: SourceFile, declar… 215 …function insertAccessor(changeTracker: textChanges.ChangeTracker, file: SourceFile, accessor: Acce… 221 …nlyPropertyInitializerStatementConstructor(changeTracker: textChanges.ChangeTracker, file: SourceF…
|
D | fixEnableExperimentalDecorators.ts | 15 …const changes = textChanges.ChangeTracker.with(context, changeTracker => doChange(changeTracker, c… 28 function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) {
|
D | fixEnableJsxFlag.ts | 13 const changes = textChanges.ChangeTracker.with(context, changeTracker => 32 function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) {
|
D | fixOverrideModifier.ts | 95 …const changes = textChanges.ChangeTracker.with(context, changes => dispatchChanges(changes, contex… 115 changeTracker: textChanges.ChangeTracker, 136 …function doAddOverrideModifierChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceF… 155 …function doRemoveOverrideModifierChange(changeTracker: textChanges.ChangeTracker, sourceFile: Sour…
|
D | useBigintLiteral.ts | 11 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con… 22 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, span: TextSp…
|
D | fixUnmatchedParameter.ts | 26 return createCombinedCodeActions(textChanges.ChangeTracker.with(context, changes => { 45 const changes = textChanges.ChangeTracker.with(context, changeTracker => 82 const changes = textChanges.ChangeTracker.with(context, changeTracker =>
|
D | addMissingAsync.ts | 3 …type ContextualTrackChangesFunction = (cb: (changeTracker: textChanges.ChangeTracker) => void) => … 24 …const trackChanges: ContextualTrackChangesFunction = cb => textChanges.ChangeTracker.with(context,… 48 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, insertionSit…
|
D | addMissingConst.ts | 12 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con… 24 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, pos: number,… 60 …function applyChange(changeTracker: textChanges.ChangeTracker, initializer: Node, sourceFile: Sour…
|
D | convertToEsModule.ts | 7 const changes = textChanges.ChangeTracker.with(context, changes => { 20 …tingFile: SourceFile, exportingFile: SourceFile, changes: textChanges.ChangeTracker, quotePreferen… 42 …le(sourceFile: SourceFile, checker: TypeChecker, changes: textChanges.ChangeTracker, target: Scrip… 92 …ccesses(sourceFile: SourceFile, exports: ExportRenames, changes: textChanges.ChangeTracker): void { 119 changes: textChanges.ChangeTracker, 155 changes: textChanges.ChangeTracker, 221 changes: textChanges.ChangeTracker, 284 changes: textChanges.ChangeTracker, 323 …ft: PropertyAccessExpression }, sourceFile: SourceFile, changes: textChanges.ChangeTracker): void {
|
D | addMissingInvocationForDecorator.ts | 8 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con… 15 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, pos: number)…
|
D | addMissingDeclareProperty.ts | 11 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con… 23 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, pos: number,…
|
D | fixPropertyAssignment.ts | 14 …const changes = textChanges.ChangeTracker.with(context, t => doChange(t, context.sourceFile, prope… 21 …function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, node: ShorthandPrope…
|
D | fixModuleAndTargetOptions.ts | 19 const changes = textChanges.ChangeTracker.with(context, changes => { 28 const changes = textChanges.ChangeTracker.with(context, tracker => {
|
D | fixAddMissingNewOperator.ts | 9 …const changes = textChanges.ChangeTracker.with(context, t => addMissingNewOperator(t, sourceFile, … 17 …function addMissingNewOperator(changes: textChanges.ChangeTracker, sourceFile: SourceFile, span: T…
|
D | fixConstructorForDerivedNeedSuperCall.ts | 10 … const changes = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, ctr)); 24 …function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, ctr: ConstructorDecl…
|
/third_party/typescript/src/services/refactors/ |
D | convertExport.ts | 45 …const edits = textChanges.ChangeTracker.with(context, t => doChange(context.file, context.program,… 117 … SourceFile, program: Program, info: ExportInfo, changes: textChanges.ChangeTracker, cancellationT… 122 …asDefault, exportNode, exportName }: ExportInfo, changes: textChanges.ChangeTracker, checker: Type… 163 …exportName, exportingModuleSymbol }: ExportInfo, changes: textChanges.ChangeTracker, cancellationT… 178 …mportingSourceFile: SourceFile, ref: Identifier, changes: textChanges.ChangeTracker, exportName: s… 224 …mport(importingSourceFile: SourceFile, ref: Identifier, changes: textChanges.ChangeTracker): void {
|
D | moveToNewFile.ts | 28 …const edits = textChanges.ChangeTracker.with(context, t => doChange(context.file, context.program,… 59 …e: SourceFile, program: Program, toMove: ToMove, changes: textChanges.ChangeTracker, host: Languag… 116 …function addNewFileToTsconfig(program: Program, changes: textChanges.ChangeTracker, oldFileName: s… 132 …oldFile: SourceFile, usage: UsageInfo, changes: textChanges.ChangeTracker, toMove: ToMove, program… 170 …nts(sourceFile: SourceFile, moved: readonly StatementRange[], changes: textChanges.ChangeTracker) { 176 …dFile: SourceFile, toMove: readonly Statement[], changes: textChanges.ChangeTracker, toDelete: Rea… 183 …function updateImportsInOtherFiles(changes: textChanges.ChangeTracker, program: Program, oldFile: … 224 changes: textChanges.ChangeTracker, 354 …ceFile: SourceFile, importDecl: SupportedImport, changes: textChanges.ChangeTracker, isUnused: (na… 371 …File: SourceFile, importDecl: ImportDeclaration, changes: textChanges.ChangeTracker, isUnused: (na… [all …]
|