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

Method applyRefactoring

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

Source from the content-addressed store, hash-verified

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