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

Unified Diff: test/rules/type_annotate_public_apis.dart

Issue 1407283008: Verify type annotations on public APIs (#24). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/rules/type_annotate_public_apis.dart ('k') | tool/rule.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rules/type_annotate_public_apis.dart
diff --git a/test/rules/type_annotate_public_apis.dart b/test/rules/type_annotate_public_apis.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c0c450b5a05a3449d3986e59d3c00200547338ad
--- /dev/null
+++ b/test/rules/type_annotate_public_apis.dart
@@ -0,0 +1,46 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+const X = ''; //LINT
+
+f() {} //LINT
+
+void g(x) {} //LINT
+
+typedef Foo(x); //LINT
+
+typedef void Bar(int x);
+
+_f() {}
+const _X = '';
+
+class A {
+
+ var x; // LINT
+ final xx = 1; //LINT
+ static const y = ''; //LINT
+ static final z = 3; //LINT
+
+ var zzz, //LINT
+ _zzz;
+
+ f() {} //LINT
+ void g(x) {} //LINT
+ static h() {} //LINT
+ static void j(x) {} //LINT
+ static void k(var v) {} //LINT
+
+ var _x;
+ final _xx = 1;
+ static const _y = '';
+ static final _z = 3;
+
+ void m() {}
+
+ _f() {}
+ void _g(x) {}
+ static _h() {}
+ static _j(x) {}
+ static _k(var x) {}
+}
« no previous file with comments | « lib/src/rules/type_annotate_public_apis.dart ('k') | tool/rule.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698