Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser, fmt: fix formatting interface method with pre-comments (#18998)
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
vlib/v/fmt/tests/interface_method_with_pre_comments_keep.vv
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,16 @@ | ||
module main | ||
|
||
fn main() { | ||
} | ||
|
||
pub interface IOperateResult { | ||
mut: | ||
// is_success | ||
is_success bool | ||
// is_show_msg | ||
is_show_msg bool | ||
// msg | ||
msg string | ||
// comment before method def | ||
set_msg(msg string) // comment after method def | ||
} |
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