klaus31 / x-formatter

Format Java Code
The Unlicense
0 stars 0 forks source link

Possibility to make a difference between comment in line and over line #2

Closed klaus31 closed 7 years ago

klaus31 commented 7 years ago

By now, there are only nodes. Thus it is impossible to make a difference between

int magicResult = magicNumber + 4; // NOSONAR
cleanCode();

and

int magicResult = magicNumber + 4;
// NOSONAR
cleanCode();

Brainstorm

Extend NodeWrapper with the original source line NodeWrapper#getOriginalSourceLine() : String

klaus31 commented 7 years ago

Solution was simple use of `Token#getLine