Files
sdk/pkg/_fe_analyzer_shared
Johnni Winther 6848cb7b62 [parser] Compute isConstructor before beginMethod
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>
2025-11-14 06:50:55 -08:00
..
2025-02-19 09:33:31 -08:00

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.