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

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

Issue 26291005: dart2js: The name of a library without a library declaration is the empty string. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 typedef ItemCompilationContext ItemCompilationContextCreator(); 7 typedef ItemCompilationContext ItemCompilationContextCreator();
8 8
9 class EnqueueTask extends CompilerTask { 9 class EnqueueTask extends CompilerTask {
10 final ResolutionEnqueuer resolution; 10 final ResolutionEnqueuer resolution;
(...skipping 13 matching lines...) Expand all
24 ScopeContainerElement container = null; 24 ScopeContainerElement container = null;
25 if (element.isLibrary()) { 25 if (element.isLibrary()) {
26 LibraryElement library = element; 26 LibraryElement library = element;
27 // Don't include private implementation libraries. These 27 // Don't include private implementation libraries. These
28 // libraries contain special classes that cause problems 28 // libraries contain special classes that cause problems
29 // in other parts of the resolver (in particular Null and Void). 29 // in other parts of the resolver (in particular Null and Void).
30 // TODO(ahe): Consider lifting this restriction. 30 // TODO(ahe): Consider lifting this restriction.
31 if (!library.isInternalLibrary) { 31 if (!library.isInternalLibrary) {
32 container = library; 32 container = library;
33 // TODO(ahe): Is this right? Is this necessary? 33 // TODO(ahe): Is this right? Is this necessary?
34 name = library.getLibraryOrScriptName(); 34 name = library.getLibraryName();
35 } 35 }
36 } else if (element.isClass()) { 36 } else if (element.isClass()) {
37 ClassElement cls = element; 37 ClassElement cls = element;
38 cls.ensureResolved(compiler); 38 cls.ensureResolved(compiler);
39 container = cls; 39 container = cls;
40 for (var link = cls.computeTypeParameters(compiler); 40 for (var link = cls.computeTypeParameters(compiler);
41 !link.isEmpty; 41 !link.isEmpty;
42 link = link.tail) { 42 link = link.tail) {
43 addMemberByName(link.head.element); 43 addMemberByName(link.head.element);
44 } 44 }
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 } 735 }
736 CodegenWorkItem workItem = new CodegenWorkItem( 736 CodegenWorkItem workItem = new CodegenWorkItem(
737 element, itemCompilationContextCreator()); 737 element, itemCompilationContextCreator());
738 queue.add(workItem); 738 queue.add(workItem);
739 } 739 }
740 740
741 void _logSpecificSummary(log(message)) { 741 void _logSpecificSummary(log(message)) {
742 log('Compiled ${generatedCode.length} methods.'); 742 log('Compiled ${generatedCode.length} methods.');
743 } 743 }
744 } 744 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698