|
5 | 5 | import 'package:_fe_analyzer_shared/src/scanner/string_canonicalizer.dart'; |
6 | 6 | import 'package:analyzer/dart/analysis/analysis_options.dart'; |
7 | 7 | import 'package:analyzer/dart/analysis/declared_variables.dart'; |
8 | | -import 'package:analyzer/error/error.dart'; |
9 | 8 | import 'package:analyzer/file_system/file_system.dart'; |
10 | 9 | import 'package:analyzer/instrumentation/instrumentation.dart'; |
11 | | -import 'package:analyzer/source/line_info.dart'; |
12 | 10 | import 'package:analyzer/src/generated/source.dart' show SourceFactory; |
13 | 11 | import 'package:meta/meta.dart'; |
14 | 12 |
|
@@ -108,31 +106,3 @@ class AnalysisEngine { |
108 | 106 | pruneStringCanonicalizationCache(); |
109 | 107 | } |
110 | 108 | } |
111 | | - |
112 | | -/// The analysis errors and line information for the errors. |
113 | | -abstract class AnalysisErrorInfo { |
114 | | - /// Return the errors that as a result of the analysis, or `null` if there were |
115 | | - /// no errors. |
116 | | - List<AnalysisError> get errors; |
117 | | - |
118 | | - /// Return the line information associated with the errors, or `null` if there |
119 | | - /// were no errors. |
120 | | - LineInfo get lineInfo; |
121 | | -} |
122 | | - |
123 | | -/// The analysis errors and line info associated with a source. |
124 | | -class AnalysisErrorInfoImpl implements AnalysisErrorInfo { |
125 | | - /// The analysis errors associated with a source, or `null` if there are no |
126 | | - /// errors. |
127 | | - @override |
128 | | - final List<AnalysisError> errors; |
129 | | - |
130 | | - /// The line information associated with the errors, or `null` if there are no |
131 | | - /// errors. |
132 | | - @override |
133 | | - final LineInfo lineInfo; |
134 | | - |
135 | | - /// Initialize an newly created error info with the given [errors] and |
136 | | - /// [lineInfo]. |
137 | | - AnalysisErrorInfoImpl(this.errors, this.lineInfo); |
138 | | -} |
0 commit comments