MCPcopy Create free account
hub / github.com/angular/angular / applyRefactoring

Method applyRefactoring

packages/language-service/testing/src/project.ts:241–249  ·  view source on GitHub ↗
(
    projectFileName: string,
    positionOrRange: number | ts.TextRange,
    refactorName: string,
    reportProgress: ApplyRefactoringProgressFn,
  )

Source from the content-addressed store, hash-verified

239 }
240
241 applyRefactoring(
242 projectFileName: string,
243 positionOrRange: number | ts.TextRange,
244 refactorName: string,
245 reportProgress: ApplyRefactoringProgressFn,
246 ): Promise<ApplyRefactoringResult | undefined> {
247 const fileName = absoluteFrom(`/${this.name}/${projectFileName}`);
248 return this.ngLS.applyRefactoring(fileName, positionOrRange, refactorName, reportProgress);
249 }
250
251 getCombinedCodeFix(projectFileName: string, fixId: string): ts.CombinedCodeActions {
252 const fileName = absoluteFrom(`/${this.name}/${projectFileName}`);

Callers

nothing calls this directly

Calls 2

absoluteFromFunction · 0.90
applyRefactoringMethod · 0.65

Tested by

no test coverage detected