6848cb7b62
This moves the computation of which a method-like declaration is a constructor to before the listener call to beginMethod. This paves the way for creating a beginXConstructor call that fully separates listener handling of constructors and methods. To avoid changes in the parsed AST, the computation deliberately matches the existing result, even though this is intertwined with error recovery. Change-Id: I34ba68f9690e842a6c8baa26d9ba4b651230ad76 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/461040 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
FE/analyzer shared code
This package contains logic that is shared between the front_end and analyzer packages. It is intended solely to facilitate development of the Dart SDK, and is not intended for use by end users. In particular, this package has no public API, so no guarantee is made of compatibility between one version of the package and the next.
End users should consider using the analyzer package to analyze Dart source code.