| 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);
|
| }
|
|
|