215f6620e7
Fasta allows some non-const static field access in constant contexts which leads to the constant evaluator trying to evaluate them. Signal an error instead of crashing. This will double-report errors for the cases that Fasta already catches, and we should fix that double-reporting. Fix unbounded recursion in printing unevaluated constants (writeNode called visitUnevaluatedConstant which called defaultConstant which called writeNode...). Fix a spurious trailing comma in printing of instance constants. Change-Id: Idff3169a3a56432ad67c27ff9c267ef355c4c1dc Reviewed-on: https://dart-review.googlesource.com/c/89514 Commit-Queue: Kevin Millikin <kmillikin@google.com> Reviewed-by: Aske Simon Christensen <askesc@google.com>
Conversion to a textual format.
The text format is currently very ad-hoc and there is no conversion back, but it's a pleasant way to view the IR.