Chromium Code Reviews
DescriptionAdd UnlinkedConst.isValid and set it during summarizing.
Several final fields in SDK have not valid constant expression
initializers, which is OK because the enclosing classes don't have
constant constructors. However we were throwing exceptions and failing
building SDK summaries.
Alternatively we could just ignore final field initializers in classes
without a constant constructor. But it seems to me that we need to
catch exceptions anyway, just in case of invalid code.
R=paulberry@google.com
BUG=
Committed: https://github.com/dart-lang/sdk/commit/0a3b938409c2f29868defbf8f71b8dd3043a976d
Patch Set 1 #
Total comments: 2
Patch Set 2 : Generate the 'isInvalid' property. #
Total comments: 2
Messages
Total messages: 6 (1 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||