Using FileKind, and creating result objects for non-Dart files #49022
Labels
analyzer-technical-debt
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
All
analyzer/lib/src/dart/analysis/results.dart
are Dart results. But we useErrorsResultImpl
to report errors in non-Dart files, likeanalysis_options.yaml
,pubspec.yaml
, etc. Which might very well be a good service for users, but the implementation is wrong. If a higher level tool (like DAS) needs a higher level abstraction of "an arbitrary analyzed file", it should wrap and split Dart analysis results vs. other file analysis results.The text was updated successfully, but these errors were encountered: