59bcc4ea1e
Collect yield positions inside StreamFlowGraphBuilder. BuildGraph() when yield_positions() are required. All yield positions will be stored into script as a hashmap. Key of hashmap is the starting token position of function, value is an array containing all yield positions. Bug: https://github.com/dart-lang/sdk/issues/37635 Change-Id: I6d301d1cb0f74c432f855c9dbc20ac2c13acb07f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116743 Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Zichang Guo <zichangguo@google.com>