Index: pkg/compiler/lib/src/closure.dart |
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart |
index 242fb82e9cb7e767f6de0edc0f4b19741fdefb03..5c7c8222c98cef82757e47d9a5b3f4f37460561e 100644 |
--- a/pkg/compiler/lib/src/closure.dart |
+++ b/pkg/compiler/lib/src/closure.dart |
@@ -4,20 +4,20 @@ |
library closureToClassMapper; |
-import "elements/elements.dart"; |
-import "dart2jslib.dart"; |
-import "dart_types.dart"; |
-import "js_backend/js_backend.dart" show JavaScriptBackend; |
-import "scanner/scannerlib.dart" show Token; |
-import "tree/tree.dart"; |
-import "util/util.dart"; |
-import "elements/modelx.dart" |
+import 'constants/expressions.dart'; |
+import 'dart2jslib.dart'; |
+import 'dart_types.dart'; |
+import 'elements/elements.dart'; |
+import 'elements/modelx.dart' |
show BaseFunctionElementX, |
ClassElementX, |
ElementX, |
LocalFunctionElementX; |
-import "elements/visitor.dart" show ElementVisitor; |
- |
+import 'elements/visitor.dart' show ElementVisitor; |
+import 'js_backend/js_backend.dart' show JavaScriptBackend; |
+import 'scanner/scannerlib.dart' show Token; |
+import 'tree/tree.dart'; |
+import 'util/util.dart'; |
import 'universe/universe.dart' show |
Universe; |
@@ -151,6 +151,9 @@ class ClosureFieldElement extends ElementX |
@override |
List<FunctionElement> get nestedClosures => const <FunctionElement>[]; |
+ |
+ @override |
+ ConstantExpression get constant => null; |
} |
// TODO(ahe): These classes continuously cause problems. We need to find |
@@ -276,6 +279,9 @@ class BoxFieldElement extends ElementX |
ResolvedAst get resolvedAst { |
throw new UnsupportedError("BoxFieldElement.resolvedAst"); |
} |
+ |
+ @override |
+ ConstantExpression get constant => null; |
} |
/// A local variable used encode the direct (uncaptured) references to [this]. |