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

Side by Side Diff: pkg/analyzer/lib/source/embedder.dart

Issue 2324463006: Clean up warnings and hints (Closed)
Patch Set: Created 4 years, 3 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 @deprecated 5 @deprecated
6 library analyzer.source.embedder; 6 library analyzer.source.embedder;
7 7
8 import 'dart:collection' show HashMap; 8 import 'dart:collection' show HashMap;
9 import 'dart:core' hide Resource; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
11 11
12 import 'package:analyzer/file_system/file_system.dart'; 12 import 'package:analyzer/file_system/file_system.dart';
13 import 'package:analyzer/source/package_map_provider.dart' 13 import 'package:analyzer/source/package_map_provider.dart'
14 show PackageMapProvider; 14 show PackageMapProvider;
15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; 15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile;
16 import 'package:analyzer/src/generated/sdk.dart'; 16 import 'package:analyzer/src/generated/sdk.dart';
17 import 'package:analyzer/src/generated/sdk_io.dart'; 17 import 'package:analyzer/src/generated/sdk_io.dart';
18 import 'package:analyzer/src/generated/source.dart'; 18 import 'package:analyzer/src/generated/source.dart';
19 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource; 19 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 @override 176 @override
177 Uri restoreAbsolute(Source source) { 177 Uri restoreAbsolute(Source source) {
178 String path = source.fullName; 178 String path = source.fullName;
179 if (path.length > 3 && path[1] == ':' && path[2] == '\\') { 179 if (path.length > 3 && path[1] == ':' && path[2] == '\\') {
180 path = '/${path[0]}:${path.substring(2).replaceAll('\\', '/')}'; 180 path = '/${path[0]}:${path.substring(2).replaceAll('\\', '/')}';
181 } 181 }
182 Source sdkSource = dartSdk.fromFileUri(Uri.parse('file://$path')); 182 Source sdkSource = dartSdk.fromFileUri(Uri.parse('file://$path'));
183 return sdkSource?.uri; 183 return sdkSource?.uri;
184 } 184 }
185 } 185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698