-
Notifications
You must be signed in to change notification settings - Fork 122
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
Null exception in comment_writer #1621
Comments
I suspect that this comes from having a snippet like this: @override
// ignore: overridden_fields
final FunctionEntity _member; (Note that this is how VSCode quick fix will add the If I change it to @override
final FunctionEntity _member; // ignore: overridden_fields then the formatter works fine. |
Thanks, I'll take a look. |
There may have been two issues in that file. With the latest dart_style, I didn't get a crash on the But I did get another crash in that same file with the same stack trace. That one was caused by: var /**/ local = parameter; Because Dart used to use Javadoc style doc comments ages ago, it seems the parser treats Either way, the formatter handles this (incredibly rare) case better now. |
The text was updated successfully, but these errors were encountered: