FunctionTypedFormalParameterImpl.endToken does not take "?" into account #38990
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
NNBD
Issues related to NNBD Release
dartfmt has an issue (dart-lang/dart_style#862) where a comma after a nullable function-typed formal parameter gets discarded. To find the comma after each parameter, it uses
param.endToken.next
on each parameter. It looks like that wasn't updated when the optional trailing?
was added to the AST:That should probably be:
I should be able to put a little hack into dartfmt to work around this until it's fixed.
The text was updated successfully, but these errors were encountered: