AST-Based Source Code Migration Through Symbols Replacement
Dawei Chen, Duncan Lawler, Yi Zhang, Pramil Kuchhal, Derek Westcott, Guanxiong Yang · 2022
As software versions are developed iteratively, we are always faced with the necessity to migrate code that depends on one or more modules from an older version to a newer one. This article introduces ideas of automatic source code migration based on a theory of nodes operations to compiled AST using Typescript and the Jasmine Testing Framework as an example.