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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 1115183002: Add ConstantConstructor to ConstantExpression system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index dc8650408d5eda22cf29027819a3b56d05381456..1cbb6cfcd0b4ae02bfa608b7d8a74ed320f97e38 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -998,6 +998,10 @@ abstract class LocalElement extends Element implements TypedElement, Local {
/// A top level, static or instance field, a formal parameter or local variable.
abstract class VariableElement extends ExecutableElement {
Expression get initializer;
+
+ /// The constant expression defining the value of the variable if `const`,
+ /// `null` otherwise.
+ ConstantExpression get constant;
}
/// An entity that defines a local entity (memory slot) in generated code.
@@ -1256,6 +1260,13 @@ abstract class ConstructorElement extends FunctionElement
/// is `C.c`.
ConstructorElement get definingConstructor;
+ /// The constant constructor defining the binding of fields if `const`,
+ /// `null` otherwise.
+ ConstantConstructor get constantConstructor;
+
+ /// `true` if this constructor is either `bool.fromEnviroment`
+ bool get isFromEnvironmentConstructor;
+
/// Use [enclosingClass] instead.
@deprecated
get enclosingElement;
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698