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

Side by Side 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 unified diff | Download patch
« lib/src/rules/comment_references.dart ('K') | « test/rule_test.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
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4
5 // test w/ `dart test/util/solo_test.dart comment_references`
6
7 /// Writes [y]. #LINT
8 void write(int x) {}
9
10 /// [String] is OK.
11 class A {
12 /// But [zap] is not. #LINT
13 int z;
14
15 /// Reads [x] and assigns to [z]. #OK
16 void read(int x) {}
17
18 /// Writes [y]. #LINT
19 void write(int x) {}
20 }
OLDNEW
« 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