Chromium Code Reviews| 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 54ecf63a80f1e3ce3eb8a71d2d874d210fb67f8c..b0896598d1da7eeb2ff5f62bbf64619d7b372167 100644 |
| --- a/pkg/compiler/lib/src/elements/elements.dart |
| +++ b/pkg/compiler/lib/src/elements/elements.dart |
| @@ -996,8 +996,11 @@ abstract class VariableElement extends ExecutableElement { |
| Expression get initializer; |
| - /// The constant expression defining the value of the variable if `const`, |
| - /// `null` otherwise. |
| + /// The constant expression defining the (initial) value of the variable. |
| + /// |
| + /// If the variable is `const` the value is always non-null, possibly an |
| + /// [ErroneousConstantExpression], other otherwise the value is null the |
|
Siggi Cherem (dart-lang)
2016/04/27 05:52:39
nit: rephrase (other otherwise => otherwise, null
Johnni Winther
2016/04/28 09:11:01
Done.
|
| + /// initializer wasn't a constant expression. |
| ConstantExpression get constant; |
| } |