-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'augment class A {}' cannot be parsed #48541
Comments
That is as intended(-ish). The support for |
OK, thank you. This is inconvenient with the way analyzer works - we can parse a file not knowing initially how it will be referenced later. And it feels inconsistent with the way language version works, which allows you to set So, for now in the analyzer I will enable |
How do we know that an arbitrary file is an augmentation library? Is there a file naming convention? |
Bug: #48541 Change-Id: I01b6b5bb9062a1921e0e171419a9ec1349621d8c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242660 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
Currently we only read these files knowing that they are augmentation libraries. The general discussion of how to identify these is in dart-lang/language#2120 |
Thank you for the pointer. |
But
macro class A {}
can.The text was updated successfully, but these errors were encountered: