-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41806 from poorna2152/adding_spaces
Fix formatter adding of spaces in consecutive use of format command
- Loading branch information
Showing
5 changed files
with
71 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...t/resources/declarations/function-definition/assert/function_definition_declaration_3.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function f { | ||
if | ||
worker A { | ||
|
||
} | ||
} | ||
|
||
function g { | ||
if | ||
worker | ||
B { | ||
|
||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...t/resources/declarations/function-definition/source/function_definition_declaration_3.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function f { | ||
if | ||
worker A{ | ||
|
||
} | ||
} | ||
|
||
function g { | ||
if | ||
worker | ||
B { | ||
|
||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rmatter/modules/formatter-core/src/test/resources/statements/do/assert/do_statement_3.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function baz() { | ||
int x = 1; | ||
do { | ||
int b = 2; | ||
} on f | ||
|
||
if | ||
while x < 5 { | ||
x += 1; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rmatter/modules/formatter-core/src/test/resources/statements/do/source/do_statement_3.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function baz() { | ||
int x = 1; | ||
do { | ||
int b = 2; | ||
} on f | ||
|
||
if | ||
while x < 5 { | ||
x += 1; | ||
} | ||
} |