-
Notifications
You must be signed in to change notification settings - Fork 36
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 #163 from pontem-network/formatting-fixes
fix formatting for item spec parameter lists
- Loading branch information
Showing
5 changed files
with
59 additions
and
3 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
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
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
27 changes: 27 additions & 0 deletions
27
src/test/resources/org/move/ide/formatter.fixtures/function_parameters.move
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,27 @@ | ||
module 0x1::function_parameters { | ||
fun prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
|
||
spec prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
|
||
spec fun prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
|
||
spec module { | ||
fun prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/test/resources/org/move/ide/formatter.fixtures/function_parameters_after.move
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,27 @@ | ||
module 0x1::function_parameters { | ||
fun prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
|
||
spec prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
|
||
spec fun prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
|
||
spec module { | ||
fun prologue( | ||
a: u8, | ||
b: u8, | ||
c: u8, | ||
): u8 {} | ||
} | ||
} |