Modular and Extensible Extract Method - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2024

Modular and Extensible Extract Method

Résumé

Extract method refactoring is one of the most important refactorings in any refactoring engine because it supports developers to create new methods out of existing ones. Its importance comes with the cost of complexity since it needs to take care of many issues to produce code that is syntactically and semantically correct. Finally, their complexity often leads existing extract method refactoring to be defined in a monolithic way. Such an implementation hampers any reuse of analyses and forbids simple variations in the case of domain-specific refactorings based on extract method general idea. In this article, after describing the challenges of the analysis of Extract Method refactoring in the context of Pharo, we describe a new modular implementation. This implementation is based on the composition of elementary transformations. We validate this approach showing how it supports the natural definition of two domain-specific refactorings: Extract SetUp refactoring (for SUnit) and Extract with Pragma refactoring (for the Slang framework).
Fichier principal
Vignette du fichier
Saren24b-IWST-ExtractMethod.pdf (700.63 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04670318 , version 1 (12-08-2024)

Licence

Identifiants

  • HAL Id : hal-04670318 , version 1

Citer

Balša Šarenac, Stéphane Ducasse, Guillermo Polito, Gordana Rakic. Modular and Extensible Extract Method. International Workshop on Smalltalk Technologies - IWST 24, Jul 2024, Lille, France. ⟨hal-04670318⟩
100 Consultations
46 Téléchargements

Partager

More