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