ballerina-lang
ballerina-lang copied to clipboard
[Bug]: Behaviour of the formatter is erroneous when there is a compiler error in the code
Description
Sample code
type B
function test(B b) {
var a = true;
if(a) {
}
}
After formatting, it will transform to following code which is incorrect.
type B
function
test(B b) {
var a = true;
if (a) {
}
}
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response