blob: 55297cbc88e8abced3c05ef260ba5415c9205911 [file] [log] [blame]
40 columns |
>>> line comments
enum A {
// comment
B,
// comment
C
// comment
}
<<<
enum A {
// comment
B,
// comment
C
// comment
}
>>> block comments
enum A {
/* comment */
B,
/* comment */
C
/* comment */
}
<<<
enum A {
/* comment */
B,
/* comment */
C
/* comment */
}
>>> remove blank lines before beginning of body
enum A {
// comment
B
}
<<<
enum A {
// comment
B
}
>>> remove blank lines after end of body
enum A {
B
// comment
}
<<<
enum A {
B
// comment
}
>>> ensure blank line above doc comments
enum Foo {/// doc
a,/// doc
b;/// doc
var x = 1;
/// doc
void y() {}}
<<<
enum Foo {
/// doc
a,
/// doc
b;
/// doc
var x = 1;
/// doc
void y() {}
}
>>> line comment after last
enum Foo {
a,
b // comment
}
<<<
enum Foo {
a,
b // comment
}
>>> line comment in middle
enum Foo {
a, // comment
b
}
<<<
enum Foo {
a, // comment
b
}
>>> line comment in member constructor
enum Foo {
a(// c
),b()
}
<<<
enum Foo {
a(// c
),
b()
}