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

Unified Diff: pkg/analysis_server/test/protocol_server_test.dart

Issue 1313113002: Fix display of parameter lists in servers Element structure (issue 24194) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: formatted Created 5 years, 4 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/analysis_server/test/protocol_server_test.dart
diff --git a/pkg/analysis_server/test/protocol_server_test.dart b/pkg/analysis_server/test/protocol_server_test.dart
index 9942fa6f921e3538455319a5468259651cc78a76..7abbe3f70314f963ca3c12d7f51bb32f22727fbc 100644
--- a/pkg/analysis_server/test/protocol_server_test.dart
+++ b/pkg/analysis_server/test/protocol_server_test.dart
@@ -517,7 +517,7 @@ myLabel:
'/test.dart',
'''
class A {
- static List<String> myMethod(int a, {String b}) {
+ static List<String> myMethod(int a, {String b, int c}) {
return null;
}
}''');
@@ -535,7 +535,7 @@ class A {
expect(location.startLine, 2);
expect(location.startColumn, 23);
}
- expect(element.parameters, '(int a, {String b})');
+ expect(element.parameters, '(int a, {String b, int c})');
expect(element.returnType, 'List<String>');
expect(element.flags, Element.FLAG_STATIC);
}

Powered by Google App Engine
This is Rietveld 408576698