dark...@gmail.com
unread,Jan 13, 2023, 9:01:45 AM1/13/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dart Analyzer Discussion, da...@tuppeny.com, brianwilkerson, alexander...@jetbrains.com
I see, this makes sense thanks.
What triggered this question is that the need to specify AnalysisErrorFixes.error makes implementing "getFixes" a lot more complex,
as that method is by default unaware of the AnalysisErrors at the given offset.
It demands "getFixes" to implement some form of caching, to keep a reference on the last emitted AnalysisErrors at a given library.
That, or have getFixes recompute the list of AnalysisErrors, which could be inefficient.
My 2cents on this would be:
- I'd expect the getFixes request to contain the list of errorCodes at the given offset
- I'd expect AnalysisErrorFixes to contain the AnalysisError.errorCode only, instead of the whole AnalysisError
This would enable getFixes to return a list of fixes, without necessarily having to know how to compute AnalysisErrors.