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

Unified Diff: test/rules/comment_references.dart

Issue 1978603003: Lint to detect dangling identifiers in docs (#240). (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
« lib/src/rules/comment_references.dart ('K') | « test/rule_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rules/comment_references.dart
diff --git a/test/rules/comment_references.dart b/test/rules/comment_references.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3b9c56d9f46981077b7a7bfb17187083f337486a
--- /dev/null
+++ b/test/rules/comment_references.dart
@@ -0,0 +1,20 @@
+// Copyright (c) 2016, 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.
+
+// test w/ `dart test/util/solo_test.dart comment_references`
+
+/// Writes [y]. #LINT
+void write(int x) {}
+
+/// [String] is OK.
+class A {
+ /// But [zap] is not. #LINT
+ int z;
+
+ /// Reads [x] and assigns to [z]. #OK
+ void read(int x) {}
+
+ /// Writes [y]. #LINT
+ void write(int x) {}
+}
« lib/src/rules/comment_references.dart ('K') | « test/rule_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698