Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Source without statements loses all top-level comments during 'migrate' #32

@codeworrior

Description

@codeworrior

While working on UI5/openui5@c782ce9 , I encountered the following issue with the ui5-migration tooling:

The file src/sap.m/src/sap/m/SelectionDetailsFacade.js which contains only JSDoc comments, was converted to sap.ui.define (not necessary) and all comments went lost.

After (this is the whole file)

sap.ui.define([], function() {
"use strict";
});

To reproduce, you can execute the following commands

cd openui5
git checkout 6555a38
ui5-migration migrate src/sap.m/src/sap/m/SelectionDetailsFacade.js 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions