Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (revision 16601) |
| +++ sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (working copy) |
| @@ -462,6 +462,11 @@ |
| if (result != null) return result; |
| } else if (Elements.isClass(element) || Elements.isTypedef(element)) { |
| return makeTypeConstant(element); |
|
ahe
2013/01/03 14:09:26
To ease my mind, could you add this:
} else if (s
ngeoffray
2013/01/08 14:36:11
This is not easing mine :) Where do you want to pu
ahe
2013/01/18 11:07:11
Right here, before the new code.
ngeoffray
2013/01/18 11:15:30
Done.
|
| + } else if (!Elements.isUnresolved(element) |
| + && element.isVariable() |
| + && element.modifiers.isConst()) { |
| + Constant result = handler.compileConstant(element); |
| + if (result != null) return result; |
| } |
| return signalNotCompileTimeConstant(send); |
| } else if (send.isCall) { |