DescriptionPartial solution to analyze potentially constant expressions
This change adds code that detects if an expression can definitively
never be constant. We use this to analyze the initializer expressions
in const constructors. This check is not entirely water tight, but
together with the checks in canonicalization code catches most
illegal initializer expressions.
The const constructor of class Symbol turns out to be illegal. The
name verification check can't be part of the constructor code.
R=iposva@google.com
Committed: https://code.google.com/p/dart/source/detail?r=24749
Patch Set 1 #
Total comments: 8
Patch Set 2 : #
Messages
Total messages: 4 (0 generated)
|