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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/library_loader.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * [CompilerTask] for loading libraries and setting up the import/export scopes. 8 * [CompilerTask] for loading libraries and setting up the import/export scopes.
9 * 9 *
10 * The library loader uses four different kinds of URIs in different parts of 10 * The library loader uses four different kinds of URIs in different parts of
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 } 330 }
331 } 331 }
332 332
333 bool isDartCore(Uri uri) => uri.scheme == "dart" && uri.path == "core"; 333 bool isDartCore(Uri uri) => uri.scheme == "dart" && uri.path == "core";
334 334
335 /** 335 /**
336 * Lazily loads and returns the [LibraryElement] for the dart:core library. 336 * Lazily loads and returns the [LibraryElement] for the dart:core library.
337 */ 337 */
338 LibraryElement loadCoreLibrary(LibraryDependencyHandler handler) { 338 LibraryElement loadCoreLibrary(LibraryDependencyHandler handler) {
339 if (compiler.coreLibrary == null) { 339 if (compiler.coreLibrary == null) {
340 Uri coreUri = new Uri.fromComponents(scheme: 'dart', path: 'core'); 340 Uri coreUri = new Uri(scheme: 'dart', path: 'core');
341 compiler.coreLibrary 341 compiler.coreLibrary
342 = createLibrary(handler, null, coreUri, null, coreUri); 342 = createLibrary(handler, null, coreUri, null, coreUri);
343 } 343 }
344 return compiler.coreLibrary; 344 return compiler.coreLibrary;
345 } 345 }
346 346
347 void patchDartLibrary(LibraryDependencyHandler handler, 347 void patchDartLibrary(LibraryDependencyHandler handler,
348 LibraryElement library, String dartLibraryPath) { 348 LibraryElement library, String dartLibraryPath) {
349 if (library.isPatched) return; 349 if (library.isPatched) return;
350 Uri patchUri = compiler.resolvePatchUri(dartLibraryPath); 350 Uri patchUri = compiler.resolvePatchUri(dartLibraryPath);
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 } 831 }
832 832
833 /** 833 /**
834 * Registers all top-level entities of [library] as starting point for the 834 * Registers all top-level entities of [library] as starting point for the
835 * fixed-point computation of the import/export scopes. 835 * fixed-point computation of the import/export scopes.
836 */ 836 */
837 void registerLibraryExports(LibraryElement library) { 837 void registerLibraryExports(LibraryElement library) {
838 nodeMap[library].registerInitialExports(); 838 nodeMap[library].registerInitialExports();
839 } 839 }
840 } 840 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698