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

Side by Side Diff: pkg/analyzer/test/src/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/test/src/context/mock_sdk.dart ('k') | no next file » | 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.mock_sdk; 5 library analyzer.test.src.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/context.dart'; 9 import 'package:analyzer/src/context/context.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 try { 244 try {
245 resource.File file = provider.getResource(uri.path); 245 resource.File file = provider.getResource(uri.path);
246 Uri dartUri = Uri.parse(library.shortName); 246 Uri dartUri = Uri.parse(library.shortName);
247 return file.createSource(dartUri); 247 return file.createSource(dartUri);
248 } catch (exception) { 248 } catch (exception) {
249 return null; 249 return null;
250 } 250 }
251 } 251 }
252 if (filePath.startsWith("$libraryPath/")) { 252 if (filePath.startsWith("$libraryPath/")) {
253 String pathInLibrary = filePath.substring(libraryPath.length + 1); 253 String pathInLibrary = filePath.substring(libraryPath.length + 1);
254 String path = '${library.shortName}/${pathInLibrary}'; 254 String path = '${library.shortName}/$pathInLibrary';
255 try { 255 try {
256 resource.File file = provider.getResource(uri.path); 256 resource.File file = provider.getResource(uri.path);
257 Uri dartUri = new Uri(scheme: 'dart', path: path); 257 Uri dartUri = new Uri(scheme: 'dart', path: path);
258 return file.createSource(dartUri); 258 return file.createSource(dartUri);
259 } catch (exception) { 259 } catch (exception) {
260 return null; 260 return null;
261 } 261 }
262 } 262 }
263 } 263 }
264 return null; 264 return null;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 bool get isInternal => throw unimplemented; 319 bool get isInternal => throw unimplemented;
320 320
321 @override 321 @override
322 bool get isShared => throw unimplemented; 322 bool get isShared => throw unimplemented;
323 323
324 @override 324 @override
325 bool get isVmLibrary => throw unimplemented; 325 bool get isVmLibrary => throw unimplemented;
326 326
327 UnimplementedError get unimplemented => new UnimplementedError(); 327 UnimplementedError get unimplemented => new UnimplementedError();
328 } 328 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/context/mock_sdk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698