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

Side by Side Diff: pkg/analysis_server/test/edit/sort_members_test.dart

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/protocol/protocol.dart'; 7 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_generated.dart'; 8 import 'package:analysis_server/protocol/protocol_generated.dart';
9 import 'package:analysis_server/src/edit/edit_domain.dart'; 9 import 'package:analysis_server/src/edit/edit_domain.dart';
10 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 10 import 'package:analyzer_plugin/protocol/protocol_common.dart';
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 export 'dart:aaa'; 174 export 'dart:aaa';
175 export 'dart:bbb'; 175 export 'dart:bbb';
176 176
177 class MyAnnotation { 177 class MyAnnotation {
178 const MyAnnotation(_); 178 const MyAnnotation(_);
179 } 179 }
180 '''); 180 ''');
181 } 181 }
182 182
183 test_OK_genericFunctionType() async { 183 test_OK_genericFunctionType() async {
184 addFile( 184 addFile(projectPath + '/analysis_options.yaml', '''
185 projectPath + '/analysis_options.yaml',
186 '''
187 analyzer: 185 analyzer:
188 strong-mode: true 186 strong-mode: true
189 '''); 187 ''');
190 addTestFile(''' 188 addTestFile('''
191 class C { 189 class C {
192 void caller() { 190 void caller() {
193 Super s = new Super(); 191 Super s = new Super();
194 takesSub(s); // <- No warning 192 takesSub(s); // <- No warning
195 } 193 }
196 194
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 expect(resultCode, expectedCode); 250 expect(resultCode, expectedCode);
253 } 251 }
254 252
255 Future _requestSort() async { 253 Future _requestSort() async {
256 Request request = new EditSortMembersParams(testFile).toRequest('0'); 254 Request request = new EditSortMembersParams(testFile).toRequest('0');
257 Response response = await waitResponse(request); 255 Response response = await waitResponse(request);
258 var result = new EditSortMembersResult.fromResponse(response); 256 var result = new EditSortMembersResult.fromResponse(response);
259 fileEdit = result.edit; 257 fileEdit = result.edit;
260 } 258 }
261 } 259 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/edit/refactoring_test.dart ('k') | pkg/analysis_server/test/edit/statement_completion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698