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

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

Issue 709493002: Fix 'Unused local variable' hints in analyzer and analysis_server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 library test.edit.refactoring; 5 library test.edit.refactoring;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/edit/edit_domain.dart'; 9 import 'package:analysis_server/src/edit/edit_domain.dart';
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1201
1202 test_constructor_fromInstanceCreation() { 1202 test_constructor_fromInstanceCreation() {
1203 addTestFile(''' 1203 addTestFile('''
1204 class A { 1204 class A {
1205 A.test() {} 1205 A.test() {}
1206 } 1206 }
1207 main() { 1207 main() {
1208 new A.test(); 1208 new A.test();
1209 } 1209 }
1210 '''); 1210 ''');
1211 String search = 'test();';
1212 String newName = 'newName';
1213 return assertSuccessfulRefactoring(() { 1211 return assertSuccessfulRefactoring(() {
1214 return sendRenameRequest('test();', 'newName'); 1212 return sendRenameRequest('test();', 'newName');
1215 }, ''' 1213 }, '''
1216 class A { 1214 class A {
1217 A.newName() {} 1215 A.newName() {}
1218 } 1216 }
1219 main() { 1217 main() {
1220 new A.newName(); 1218 new A.newName();
1221 } 1219 }
1222 '''); 1220 ''');
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 } 1542 }
1545 1543
1546 @override 1544 @override
1547 void setUp() { 1545 void setUp() {
1548 super.setUp(); 1546 super.setUp();
1549 server.handlers = [new EditDomainHandler(server),]; 1547 server.handlers = [new EditDomainHandler(server),];
1550 createProject(); 1548 createProject();
1551 handler = new EditDomainHandler(server); 1549 handler = new EditDomainHandler(server);
1552 } 1550 }
1553 } 1551 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_execution_test.dart ('k') | pkg/analysis_server/test/integration/integration_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698