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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/move_file_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.services.refactoring.move_files; 5 library test.services.refactoring.move_files;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart'; 9 import 'package:analysis_server/src/protocol.dart';
10 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 10 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 assertFileChangeResult(pathA, ''' 98 assertFileChangeResult(pathA, '''
99 import '22/new_name.dart'; 99 import '22/new_name.dart';
100 '''); 100 ''');
101 assertNoFileChange(testFile); 101 assertNoFileChange(testFile);
102 }); 102 });
103 } 103 }
104 104
105 test_importedLibrary_package() { 105 test_importedLibrary_package() {
106 // configure packages 106 // configure packages
107 testFile = '/packages/my_pkg/aaa/test.dart'; 107 testFile = '/packages/my_pkg/aaa/test.dart';
108 File testFileRes = provider.newFile(testFile, ''); 108 provider.newFile(testFile, '');
109 Map<String, List<Folder>> packageMap = { 109 Map<String, List<Folder>> packageMap = {
110 'my_pkg': [provider.getResource('/packages/my_pkg')] 110 'my_pkg': [provider.getResource('/packages/my_pkg')]
111 }; 111 };
112 context.sourceFactory = new SourceFactory( 112 context.sourceFactory = new SourceFactory(
113 [ 113 [
114 AbstractContextTest.SDK_RESOLVER, 114 AbstractContextTest.SDK_RESOLVER,
115 resourceResolver, 115 resourceResolver,
116 new PackageMapUriResolver(provider, packageMap)]); 116 new PackageMapUriResolver(provider, packageMap)]);
117 // do testing 117 // do testing
118 String pathA = '/project/bin/a.dart'; 118 String pathA = '/project/bin/a.dart';
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 break; 219 break;
220 } 220 }
221 for (ChangeNotice notice in result.changeNotices) { 221 for (ChangeNotice notice in result.changeNotices) {
222 if (notice.source.fullName.startsWith('/project/')) { 222 if (notice.source.fullName.startsWith('/project/')) {
223 index.indexUnit(context, notice.compilationUnit); 223 index.indexUnit(context, notice.compilationUnit);
224 } 224 }
225 } 225 }
226 } 226 }
227 } 227 }
228 } 228 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698