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

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: Add missing files Created 7 years, 7 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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 734
735 initializeSpecialClasses(); 735 initializeSpecialClasses();
736 736
737 functionClass.ensureResolved(this); 737 functionClass.ensureResolved(this);
738 functionApplyMethod = 738 functionApplyMethod =
739 functionClass.lookupLocalMember(const SourceString('apply')); 739 functionClass.lookupLocalMember(const SourceString('apply'));
740 jsInvocationMirrorClass.ensureResolved(this); 740 jsInvocationMirrorClass.ensureResolved(this);
741 invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON); 741 invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON);
742 742
743 if (preserveComments) { 743 if (preserveComments) {
744 var uri = new Uri.fromComponents(scheme: 'dart', path: 'mirrors'); 744 var uri = new Uri(scheme: 'dart', path: 'mirrors');
745 LibraryElement libraryElement = 745 LibraryElement libraryElement =
746 libraryLoader.loadLibrary(uri, null, uri); 746 libraryLoader.loadLibrary(uri, null, uri);
747 documentClass = libraryElement.find(const SourceString('Comment')); 747 documentClass = libraryElement.find(const SourceString('Comment'));
748 } 748 }
749 } 749 }
750 750
751 void importHelperLibrary(LibraryElement library) { 751 void importHelperLibrary(LibraryElement library) {
752 if (jsHelperLibrary != null) { 752 if (jsHelperLibrary != null) {
753 libraryLoader.importLibrary(library, jsHelperLibrary, null); 753 libraryLoader.importLibrary(library, jsHelperLibrary, null);
754 } 754 }
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 1327
1328 void close() {} 1328 void close() {}
1329 1329
1330 toString() => name; 1330 toString() => name;
1331 1331
1332 /// Convenience method for getting an [api.CompilerOutputProvider]. 1332 /// Convenience method for getting an [api.CompilerOutputProvider].
1333 static NullSink outputProvider(String name, String extension) { 1333 static NullSink outputProvider(String name, String extension) {
1334 return new NullSink('$name.$extension'); 1334 return new NullSink('$name.$extension');
1335 } 1335 }
1336 } 1336 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698