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

Unified Diff: test/rules/public_member_api_docs.dart

Issue 1992863002: Check for documented getters when checking setters (#237). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 4 years, 7 months 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
Index: test/rules/public_member_api_docs.dart
diff --git a/test/rules/public_member_api_docs.dart b/test/rules/public_member_api_docs.dart
index 79b71c09737af1c5d9ba68c194fecc14f37c10a2..f375090d9d22e22242d6001181b860f3b91028c8 100644
--- a/test/rules/public_member_api_docs.dart
+++ b/test/rules/public_member_api_docs.dart
@@ -6,6 +6,16 @@
abstract class A //LINT
{
+
+ /// Zapp.
+ int get zapp => 0;
+ set zapp(int z) //OK
+ { }
+
+ int get zapp2 => 0; //LINT
+ /// Zapp.
+ set zapp2(int z) { }
+
static const Z = 1; //LINT
static int _Z = 13; //OK
@@ -27,6 +37,16 @@ abstract class A //LINT
c(); //LINT
}
+/// Zapp.
+int get zapp => 0;
+set zapp(int z) //OK
+{ }
+
+int get zapp2 => 0; //LINT
+/// Zapp.
+set zapp2(int z) { }
+
+
main() //OK
{ }
@@ -68,3 +88,15 @@ int _h; //OK
int gg, //LINT
_gg; //OK
+
+/// ZZ.
+class ZZ {
+ /// Z.
+ int get z => 0;
+}
+
+/// ZZZ.
+class ZZZ extends ZZ {
+ set z(int z) //OK
+ { }
+}
« lib/src/rules/public_member_api_docs.dart ('K') | « lib/src/rules/public_member_api_docs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698