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

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

Issue 1513643009: Clean up package imports and library names (Closed) Base URL: https://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
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 library source.embedder; 5 library analyzer.source.embedder;
6 6
7 import 'dart:collection' show HashMap;
7 import 'dart:core' hide Resource; 8 import 'dart:core' hide Resource;
8 import 'dart:collection' show HashMap;
9 9
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; 11 import 'package:analyzer/src/generated/java_io.dart' show JavaFile;
12 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
13 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource; 13 import 'package:analyzer/src/generated/source_io.dart' show FileBasedSource;
14 import 'package:path/path.dart' as pathos; 14 import 'package:path/path.dart' as pathos;
15 import 'package:yaml/yaml.dart'; 15 import 'package:yaml/yaml.dart';
16 16
17 /// Given a packageMap, check in each package's lib directory for the 17 /// Given a packageMap, check in each package's lib directory for the
18 /// existence of an `_embedder.yaml` file. If the file contains a top level 18 /// existence of an `_embedder.yaml` file. If the file contains a top level
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 /// Resolve a 'part' statement inside an sdk extension. 224 /// Resolve a 'part' statement inside an sdk extension.
225 Source _resolvePart(Uri libraryEntry, String partPath, Uri importUri) { 225 Source _resolvePart(Uri libraryEntry, String partPath, Uri importUri) {
226 // Library part. 226 // Library part.
227 String directory = pathos.dirname(libraryEntry.path); 227 String directory = pathos.dirname(libraryEntry.path);
228 Uri partUri = new Uri.file(pathos.join(directory, partPath)); 228 Uri partUri = new Uri.file(pathos.join(directory, partPath));
229 assert(partUri.isAbsolute); 229 assert(partUri.isAbsolute);
230 JavaFile javaFile = new JavaFile.fromUri(partUri); 230 JavaFile javaFile = new JavaFile.fromUri(partUri);
231 return new FileBasedSource(javaFile, importUri); 231 return new FileBasedSource(javaFile, importUri);
232 } 232 }
233 } 233 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/analysis_options_provider.dart ('k') | pkg/analyzer/lib/source/package_map_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698