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

Fix formatting for when there are syntax errors

Open SupunS opened this issue 4 years ago • 1 comments
trafficstars

Description:

Below is one example:

Source:

class Foo {
    class function bar() {   // invalid token 'class'
    }
}

Formatted output

class Foo {
class function bar() { // invalid token 'class'
    }
}

NOTE: This is only one sample. Need to find and fix all such similar cases.

SupunS avatar Dec 15 '20 03:12 SupunS

Another example:

public function main() {
    public int a; // invalid token 'public'
}

SupunS avatar Dec 15 '20 11:12 SupunS