Transformation-based Refactorings: a First Analysis - INRIA Chile Accéder directement au contenu
Communication Dans Un Congrès Année : 2022

Transformation-based Refactorings: a First Analysis

Résumé

Refactorings are behavior preserving transformations. Little work exists on the analysis of their implementation and in particular how refactorings could be composed from smaller, reusable, parts (being simple transformations or other refactorings) and how (non behavior preserving) transformations could be used in isolation or to compose new refactoring operators. In this article we study the seminal implementation and evolution of Refactorings as proposed in the PhD of D. Roberts. Such an implementation is available as the Refactoring Browser package in Pharo. In particular we focus on the possibilities to reuse transformations independently from the behavior preserving aspect of a refactoring. The long term question we want to answer is: Is it possible to have more atomic transformations and refactorings composed out of such transformations? We study preconditions of existing refactorings and identify several families. We identify missed opportunities of reuse in the case of implicit composite refactorings. We analyze the refactorings that are explicitly composed out of other refactorings to understand whether the composition could be expressed at another level of abstraction. This analysis should be the basis for a more systematic expression of composable refactorings as well as the reuse of logic between transformations and refactorings.
Fichier principal
Vignette du fichier
Anqu22b-Refactorings-IWST (1).pdf (606.49 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03752247 , version 1 (06-09-2022)
hal-03752247 , version 2 (06-09-2022)

Identifiants

  • HAL Id : hal-03752247 , version 2

Citer

Nicolas Anquetil, M Campero, Stéphane Ducasse, J.-P Sandoval, Pablo Tesone. Transformation-based Refactorings: a First Analysis. IWST 22 - International Workshop of Smalltalk Technologies, Aug 2022, Novisad, Serbia. ⟨hal-03752247v2⟩
71 Consultations
39 Téléchargements

Partager

Gmail Facebook X LinkedIn More