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

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

Issue 562123002: Support parameter access in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: pkg/analyzer2dart/test/end2end_test.dart
diff --git a/pkg/analyzer2dart/test/end2end_test.dart b/pkg/analyzer2dart/test/end2end_test.dart
index 288042db83314db5fbcb1c231950498d22af16b9..36f86eb514e15ed0ad3d7ca8b4f6af368afd4f40 100644
--- a/pkg/analyzer2dart/test/end2end_test.dart
+++ b/pkg/analyzer2dart/test/end2end_test.dart
@@ -238,6 +238,30 @@ main() $NEW_BACKEND_COMMENT
}
''');
+
+ checkResult('''
+bar(b) {}
+foo(a) {
+ bar(a);
+}
+main() {
+ foo(null);
+}
+''', '''
+bar(b) $NEW_BACKEND_COMMENT
+ {}
+
+foo(a) $NEW_BACKEND_COMMENT
+ {
+ bar(a);
+ }
+
+main() $NEW_BACKEND_COMMENT
+ {
+ foo(null);
+ }
+
+''');
});
}

Powered by Google App Engine
This is Rietveld 408576698