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

Unified Diff: pkg/analyzer2dart/lib/src/closed_world.dart

Issue 548253003: First end-to-end capability in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer2dart/bin/analyzer2dart.dart ('k') | pkg/analyzer2dart/lib/src/converted_world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/closed_world.dart
diff --git a/pkg/analyzer2dart/lib/src/closed_world.dart b/pkg/analyzer2dart/lib/src/closed_world.dart
index 2234659471814286dfcf81f4d07237cf034bff82..4c21271c89336a2f94a388bfc7b82de84f443b98 100644
--- a/pkg/analyzer2dart/lib/src/closed_world.dart
+++ b/pkg/analyzer2dart/lib/src/closed_world.dart
@@ -14,6 +14,9 @@ import 'package:analyzer/src/generated/element.dart';
* tree shaking to be reachable by the program being compiled.
*/
class ClosedWorld {
+ /// Returns the main function of this closed world compilation.
+ final FunctionElement mainFunction;
+
// TODO(paulberry): is it a problem to hold on to all the AST's for the
// duration of tree shaking & CPS generation?
@@ -38,5 +41,5 @@ class ClosedWorld {
Map<ClassElement, ClassDeclaration> instantiatedClasses =
new HashMap<ClassElement, ClassDeclaration>();
- ClosedWorld();
+ ClosedWorld(this.mainFunction);
}
« no previous file with comments | « pkg/analyzer2dart/bin/analyzer2dart.dart ('k') | pkg/analyzer2dart/lib/src/converted_world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698