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

Side by Side Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 1521883002: Fix lints: unnecessary_brace_in_string_interp (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « pkg/analyzer/lib/task/model.dart ('k') | pkg/analyzer/test/src/mock_sdk.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 analyzer.test.src.context.mock_sdk; 5 library analyzer.test.src.context.mock_sdk;
6 6
7 import 'package:analyzer/file_system/file_system.dart' as resource; 7 import 'package:analyzer/file_system/file_system.dart' as resource;
8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
9 import 'package:analyzer/src/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/context/context.dart'; 10 import 'package:analyzer/src/context/context.dart';
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 try { 268 try {
269 resource.File file = provider.getResource(uri.path); 269 resource.File file = provider.getResource(uri.path);
270 Uri dartUri = Uri.parse(library.shortName); 270 Uri dartUri = Uri.parse(library.shortName);
271 return file.createSource(dartUri); 271 return file.createSource(dartUri);
272 } catch (exception) { 272 } catch (exception) {
273 return null; 273 return null;
274 } 274 }
275 } 275 }
276 if (filePath.startsWith("$libraryPath/")) { 276 if (filePath.startsWith("$libraryPath/")) {
277 String pathInLibrary = filePath.substring(libraryPath.length + 1); 277 String pathInLibrary = filePath.substring(libraryPath.length + 1);
278 String path = '${library.shortName}/${pathInLibrary}'; 278 String path = '${library.shortName}/$pathInLibrary';
279 try { 279 try {
280 resource.File file = provider.getResource(uri.path); 280 resource.File file = provider.getResource(uri.path);
281 Uri dartUri = new Uri(scheme: 'dart', path: path); 281 Uri dartUri = new Uri(scheme: 'dart', path: path);
282 return file.createSource(dartUri); 282 return file.createSource(dartUri);
283 } catch (exception) { 283 } catch (exception) {
284 return null; 284 return null;
285 } 285 }
286 } 286 }
287 } 287 }
288 return null; 288 return null;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 @override 372 @override
373 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 373 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
374 if (factory == null) { 374 if (factory == null) {
375 return super.createCacheFromSourceFactory(factory); 375 return super.createCacheFromSourceFactory(factory);
376 } 376 }
377 return new AnalysisCache( 377 return new AnalysisCache(
378 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 378 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
379 } 379 }
380 } 380 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/task/model.dart ('k') | pkg/analyzer/test/src/mock_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698