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

Unified Diff: test/_data/synthetic/synthetic.dart

Issue 1754813003: Suppress lints on synthetic nodes/tokens (#193). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: review_fix Created 4 years, 10 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
« no previous file with comments | « lib/src/linter.dart ('k') | test/rule_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/_data/synthetic/synthetic.dart
diff --git a/test/_data/synthetic/synthetic.dart b/test/_data/synthetic/synthetic.dart
new file mode 100644
index 0000000000000000000000000000000000000000..56c5cee24ae1e7d0efb195ecb386874ddcb85dd6
--- /dev/null
+++ b/test/_data/synthetic/synthetic.dart
@@ -0,0 +1,6 @@
+// Verifies that synthetic nodes don't get lints.
+// The simple identifier synthesized after `XXX` below triggers the
+// `non_constant_identifier_names` lint.
+// See: https://github.com/dart-lang/linter/issues/193
+void main() { }
+XXX
« no previous file with comments | « lib/src/linter.dart ('k') | test/rule_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698