blob: 0cdad18c01def47255252634b9a0af09f5626b76 [file] [edit]
40 columns |
>>> leading whitespace before top comment is deleted
// comment
<<< 3.6
// comment
>>>
//comment one
//comment two
<<< 3.6
//comment one
//comment two
>>>
/* foo */ /* bar */
<<< 3.6
/* foo */ /* bar */
>>>
var x; //x
<<< 3.6
var x; //x
>>>
library foo;
/// Docs
/// spanning
/// lines.
class A {
}
/// ... and
/// Dangling ones too
int x;
<<< 3.6
library foo;
/// Docs
/// spanning
/// lines.
class A {}
/// ... and
/// Dangling ones too
int x;
>>>
library foo;
//comment one
class C {
}
<<< 3.6
library foo;
//comment one
class C {}
>>>
library foo;
//comment one
//comment two
class C {
}
<<< 3.6
library foo;
//comment one
//comment two
class C {}
>>>
import 'a.dart'; // a comment
class Foo {}
<<< 3.6
import 'a.dart'; // a comment
class Foo {}
>>>
import 'a.dart'; // a comment
// comment
class Foo {}
<<< 3.6
import 'a.dart'; // a comment
// comment
class Foo {}
>>>
import 'a.dart'; /* a */ // b
/* c */ // d
class Foo {}
<<< 3.6
import 'a.dart'; /* a */ // b
/* c */ // d
class Foo {}
>>>
import 'a.dart';
// a comment
class Foo {}
<<< 3.6
import 'a.dart';
// a comment
class Foo {}
>>>
import 'a.dart';
// import 'b.dart';
class Foo {}
<<< 3.6
import 'a.dart';
// import 'b.dart';
class Foo {}
>>>
import 'a.dart';
// a comment
class Foo {}
<<< 3.6
import 'a.dart';
// a comment
class Foo {}
>>>
import 'a.dart';
// a comment
class Foo {}
<<< 3.6
import 'a.dart';
// a comment
class Foo {}
>>> two lines between library and import
library foo;
import 'a.dart';
<<< 3.6
library foo;
import 'a.dart';
>>> two lines between library and export
library foo;
export 'a.dart';
<<< 3.6
library foo;
export 'a.dart';
>>> two lines between library and part
library foo;
part 'a.dart';
<<< 3.6
library foo;
part 'a.dart';
>>> before library name
library/* c */foo;
<<< 3.6
library /* c */ foo;
>>> block comment before "." in library
library a/**/.b.c;
<<< 3.6
library a /**/ .b.c;
>>> block comment after "." in library
library a./**/b.c;
<<< 3.6
library a. /**/ b.c;
>>> line comment before "." in library
library a//
.b.c;
<<< 3.6
library a //
.b.c;
>>> line comment after "." in library
library a.//
b.c;
<<< 3.6
library a. //
b.c;
>>> comment within unnamed library
library/* c */;
<<< 3.6
library /* c */;
>>> inline block comment between different kinds of directives
library a; /* comment */ import 'b.dart';
<<< 3.6
library a;
/* comment */ import 'b.dart';
>>> inline block comment between directives
import 'a.dart'; /* comment */ import 'b.dart';
<<< 3.6
import 'a.dart';
/* comment */ import 'b.dart';
>>> block comment between directives
import 'a.dart'; /* comment */
import 'b.dart';
<<< 3.6
import 'a.dart'; /* comment */
import 'b.dart';
>>> ensure blank line above doc comments
var a = 1;
/// doc
var b = 2;
<<< 3.6
var a = 1;
/// doc
var b = 2;
>>> in dotted name
import 'a' if (/**/a/**/./**/b/**/) 'c';
<<< 3.6
import 'a'
if (/**/ a /**/ . /**/ b /**/) 'c';