c8b18439d4
The analyzer currently resolves constructor comment references in the formal parameter scope which doesn't include field or super formal parameters, so super parameters referenced in comments weren't resolved. To fix this, this CL instead resolves constructor comment references in the initializer scope which includes all parameters. Fixes https://github.com/dart-lang/sdk/issues/51578 Bug: https://github.com/dart-lang/sdk/issues/51578 Change-Id: Idb80957b54ee9d57c36d37142188e7c833ce77f7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338741 Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Auto-Submit: Parker Lougheed <parlough@gmail.com>