71e16622cd
This CL updates fasta parsing of `for` statements to detect additional errors and improve recovery. The parser originally called parseType when parsing `for` statements which committed the parser down a particular path and limited the ability of the caller to gracefully recovery. Now the parser calls computeType, which parses and caches the type information, so that the caller has more opportunity to recover gracefully. Change-Id: I6296ffb1f75e77a87a7533bfca77dae18cfcf60d Reviewed-on: https://dart-review.googlesource.com/46383 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Dan Rubel <danrubel@google.com>