ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Bug]: Behaviour of the formatter is erroneous when there is a compiler error in the code

Open SasinduDilshara opened this issue 10 months ago • 0 comments

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

SasinduDilshara avatar Mar 28 '24 08:03 SasinduDilshara