-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fmt): properly format enums (#6637)
- Loading branch information
Showing
4 changed files
with
61 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
interface I { | ||
enum Empty {} | ||
|
||
/// A modification applied to either `msg.sender` or `tx.origin`. Returned by `readCallers`. | ||
enum CallerMode { | ||
/// No caller modification is currently active. | ||
None | ||
} | ||
|
||
/// A modification applied to either `msg.sender` or `tx.origin`. Returned by `readCallers`. | ||
enum CallerMode2 { | ||
/// No caller modification is currently active. | ||
None, | ||
/// No caller modification is currently active2. | ||
Some | ||
} | ||
|
||
function bar() public {} | ||
} |
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,23 @@ | ||
interface I { | ||
enum Empty { | ||
|
||
} | ||
|
||
/// A modification applied to either `msg.sender` or `tx.origin`. Returned by `readCallers`. | ||
enum CallerMode | ||
{/// No caller modification is currently active. | ||
None | ||
} | ||
|
||
/// A modification applied to either `msg.sender` or `tx.origin`. Returned by `readCallers`. | ||
enum CallerMode2 | ||
{/// No caller modification is currently active. | ||
None,/// No caller modification is currently active2. | ||
|
||
Some | ||
} | ||
|
||
function bar() public { | ||
|
||
} | ||
} |
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