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

Unified Diff: pkg/analyzer2dart/test/end2end_test.dart

Issue 609783002: Support static field access in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 3 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 | « pkg/analyzer2dart/lib/src/util.dart ('k') | pkg/analyzer2dart/test/tree_shaker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/test/end2end_test.dart
diff --git a/pkg/analyzer2dart/test/end2end_test.dart b/pkg/analyzer2dart/test/end2end_test.dart
index acdd8386338bab06a7f49784b0b12bb62cd5d78b..d293c5c2f87d0f15a52d6ec477e89283da6fecd4 100644
--- a/pkg/analyzer2dart/test/end2end_test.dart
+++ b/pkg/analyzer2dart/test/end2end_test.dart
@@ -310,6 +310,20 @@ main() $NEW_BACKEND_COMMENT
''');
});
+
+ test('Top level field access', () {
+ checkResult('''
+main(args) {
+ return deprecated;
+}
+''', '''
+main(args) $NEW_BACKEND_COMMENT
+ {
+ return deprecated;
+ }
+
+''');
+ });
}
checkResult(String input, String expectedOutput) {
« no previous file with comments | « pkg/analyzer2dart/lib/src/util.dart ('k') | pkg/analyzer2dart/test/tree_shaker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698