Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: test/rules/type_annotate_public_apis.dart

Issue 1496603002: Fix NSME in `type_annotate_public_apis` (#151). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/rules/type_annotate_public_apis.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 const X = ''; //LINT 5 const X = ''; //LINT
6 6
7 f() {} //LINT 7 f() {} //LINT
8 8
9 void g(x) {} //LINT 9 void g(x) {} //LINT
10 10
11 typedef Foo(x); //LINT 11 typedef Foo(x); //LINT
12 12
13 typedef void Bar(int x); 13 typedef void Bar(int x);
14 14
15 int get xxx => 42; //OK: #151
16
17 get xxxx => 42; //LINT
18
19 set x(x) { } //LINT
20
21 set xx(int x) { } //OK
22
15 _f() {} 23 _f() {}
16 const _X = ''; 24 const _X = '';
17 25
18 class A { 26 class A {
19 27
20 var x; // LINT 28 var x; // LINT
21 final xx = 1; //LINT 29 final xx = 1; //LINT
22 static const y = ''; //LINT 30 static const y = ''; //LINT
23 static final z = 3; //LINT 31 static final z = 3; //LINT
24 32
33 int get xxx => 42; //OK: #151
34
35 set xxxxx(x) { } //LINT
36
37 set xx(int x) { } //OK
38
39 get xxxx => 42; //LINT
40
25 var zzz, //LINT 41 var zzz, //LINT
26 _zzz; 42 _zzz;
27 43
28 f() {} //LINT 44 f() {} //LINT
29 void g(x) {} //LINT 45 void g(x) {} //LINT
30 static h() {} //LINT 46 static h() {} //LINT
31 static void j(x) {} //LINT 47 static void j(x) {} //LINT
32 static void k(var v) {} //LINT 48 static void k(var v) {} //LINT
33 49
34 var _x; 50 var _x;
35 final _xx = 1; 51 final _xx = 1;
36 static const _y = ''; 52 static const _y = '';
37 static final _z = 3; 53 static final _z = 3;
38 54
39 void m() {} 55 void m() {}
40 56
41 _f() {} 57 _f() {}
42 void _g(x) {} 58 void _g(x) {}
43 static _h() {} 59 static _h() {}
44 static _j(x) {} 60 static _j(x) {}
45 static _k(var x) {} 61 static _k(var x) {}
46 } 62 }
OLDNEW
« no previous file with comments | « lib/src/rules/type_annotate_public_apis.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698