adc7237ad6
This is necessary because in certain circumstances the resolver needs to consult the local elements. For example, when analyzing the type behavior of a `return` statement, it examines the enclosing function's element to see if it is asynchronous. Change-Id: Id5b5922c9f000e62d3b6f3fa0a9cecf1b3a1b0c4 Reviewed-on: https://dart-review.googlesource.com/74491 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>