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

Unified Diff: pkg/analysis_server/test/services/correction/sort_members_test.dart

Issue 1820743002: Issue 26051. Fix for MethodDeclartion.beginToken for external. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/correction/sort_members_test.dart
diff --git a/pkg/analysis_server/test/services/correction/sort_members_test.dart b/pkg/analysis_server/test/services/correction/sort_members_test.dart
index b32f5029241c047586cfdf0b04ec9f6d2490d7f5..bcc9c0c1a980a23a52afde02064f37d3b4c43f43 100644
--- a/pkg/analysis_server/test/services/correction/sort_members_test.dart
+++ b/pkg/analysis_server/test/services/correction/sort_members_test.dart
@@ -83,6 +83,22 @@ class A {
''');
}
+ void test_classMembers_external_constructorMethod() {
+ _parseTestUnit(r'''
+class Chart {
+ external Pie();
+ external Chart();
+}
+''');
+ // validate change
+ _assertSort(r'''
+class Chart {
+ external Chart();
+ external Pie();
+}
+''');
+ }
+
void test_classMembers_field() {
_parseTestUnit(r'''
class A {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698