Home
last modified time | relevance | path

Searched refs:ChangeTracker (Results 1 – 25 of 86) sorted by relevance

1234

/third_party/typescript/src/services/codefixes/
DfixUnusedIdentifier.ts27 …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 …]
DfixStrictClassInitialization.ts65 …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…
DfixImportNonExportedMember.ts16 … 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…
DfixUnreferenceableDecoratorMetadata.ts11 …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…
DfixInvalidJsxCharacters.ts16 …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…
DconvertConstToLet.ts13 … 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…
DfixAddMissingMember.ts36 …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 …]
DreturnValueCorrect.ts207 …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…
DgenerateAccessors.ts24 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…
DfixEnableExperimentalDecorators.ts15 …const changes = textChanges.ChangeTracker.with(context, changeTracker => doChange(changeTracker, c…
28 function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) {
DfixEnableJsxFlag.ts13 const changes = textChanges.ChangeTracker.with(context, changeTracker =>
32 function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) {
DfixOverrideModifier.ts95 …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…
DuseBigintLiteral.ts11 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con…
22 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, span: TextSp…
DfixUnmatchedParameter.ts26 return createCombinedCodeActions(textChanges.ChangeTracker.with(context, changes => {
45 const changes = textChanges.ChangeTracker.with(context, changeTracker =>
82 const changes = textChanges.ChangeTracker.with(context, changeTracker =>
DaddMissingAsync.ts3 …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…
DaddMissingConst.ts12 …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…
DconvertToEsModule.ts7 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 {
DaddMissingInvocationForDecorator.ts8 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con…
15 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, pos: number)…
DaddMissingDeclareProperty.ts11 …const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, con…
23 …function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, pos: number,…
DfixPropertyAssignment.ts14 …const changes = textChanges.ChangeTracker.with(context, t => doChange(t, context.sourceFile, prope…
21 …function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, node: ShorthandPrope…
DfixModuleAndTargetOptions.ts19 const changes = textChanges.ChangeTracker.with(context, changes => {
28 const changes = textChanges.ChangeTracker.with(context, tracker => {
DfixAddMissingNewOperator.ts9 …const changes = textChanges.ChangeTracker.with(context, t => addMissingNewOperator(t, sourceFile, …
17 …function addMissingNewOperator(changes: textChanges.ChangeTracker, sourceFile: SourceFile, span: T…
DfixConstructorForDerivedNeedSuperCall.ts10 … 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/
DconvertExport.ts45 …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 {
DmoveToNewFile.ts28 …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 …]

1234