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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.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 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 737
738 initializeSpecialClasses(); 738 initializeSpecialClasses();
739 739
740 functionClass.ensureResolved(this); 740 functionClass.ensureResolved(this);
741 functionApplyMethod = 741 functionApplyMethod =
742 functionClass.lookupLocalMember(const SourceString('apply')); 742 functionClass.lookupLocalMember(const SourceString('apply'));
743 jsInvocationMirrorClass.ensureResolved(this); 743 jsInvocationMirrorClass.ensureResolved(this);
744 invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON); 744 invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON);
745 745
746 if (preserveComments) { 746 if (preserveComments) {
747 var uri = new Uri.fromComponents(scheme: 'dart', path: 'mirrors'); 747 var uri = new Uri(scheme: 'dart', path: 'mirrors');
748 LibraryElement libraryElement = 748 LibraryElement libraryElement =
749 libraryLoader.loadLibrary(uri, null, uri); 749 libraryLoader.loadLibrary(uri, null, uri);
750 documentClass = libraryElement.find(const SourceString('Comment')); 750 documentClass = libraryElement.find(const SourceString('Comment'));
751 } 751 }
752 } 752 }
753 753
754 void importHelperLibrary(LibraryElement library) { 754 void importHelperLibrary(LibraryElement library) {
755 if (jsHelperLibrary != null) { 755 if (jsHelperLibrary != null) {
756 libraryLoader.importLibrary(library, jsHelperLibrary, null); 756 libraryLoader.importLibrary(library, jsHelperLibrary, null);
757 } 757 }
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 1332
1333 void close() {} 1333 void close() {}
1334 1334
1335 toString() => name; 1335 toString() => name;
1336 1336
1337 /// Convenience method for getting an [api.CompilerOutputProvider]. 1337 /// Convenience method for getting an [api.CompilerOutputProvider].
1338 static NullSink outputProvider(String name, String extension) { 1338 static NullSink outputProvider(String name, String extension) {
1339 return new NullSink('$name.$extension'); 1339 return new NullSink('$name.$extension');
1340 } 1340 }
1341 } 1341 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/apiimpl.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698