@@ -234,21 +234,17 @@ abstract class ParseStringResult {
234
234
///
235
235
/// Clients may not extend, implement or mix-in this class.
236
236
abstract class ResolvedLibraryResult
237
- implements SomeResolvedLibraryResult , AnalysisResult {
237
+ implements ParsedLibraryResult , SomeResolvedLibraryResult {
238
238
/// The element representing this library.
239
239
LibraryElement get element;
240
240
241
241
/// The type provider used when resolving the library.
242
242
TypeProvider get typeProvider;
243
243
244
244
/// The resolved units of the library.
245
+ @override
245
246
List <ResolvedUnitResult > get units;
246
247
247
- /// Return the declaration of the [element] , or `null` if the [element]
248
- /// is synthetic. Throw [ArgumentError] if the [element] is not defined in
249
- /// this library.
250
- ElementDeclarationResult ? getElementDeclaration (Element element);
251
-
252
248
/// Return the resolved unit corresponding to the [path] , or `null` if there
253
249
/// is no such unit.
254
250
ResolvedUnitResult ? unitWithPath (String path);
@@ -259,10 +255,7 @@ abstract class ResolvedLibraryResult
259
255
///
260
256
/// Clients may not extend, implement or mix-in this class.
261
257
abstract class ResolvedUnitResult
262
- implements SomeResolvedUnitResult , AnalysisResultWithErrors {
263
- /// The content of the file that was scanned, parsed and resolved.
264
- String get content;
265
-
258
+ implements ParsedUnitResult , SomeResolvedUnitResult {
266
259
/// Return `true` if the file exists.
267
260
bool get exists;
268
261
@@ -274,9 +267,6 @@ abstract class ResolvedUnitResult
274
267
275
268
/// The type system used when resolving the compilation [unit] .
276
269
TypeSystem get typeSystem;
277
-
278
- /// The fully resolved compilation unit for the [content] .
279
- CompilationUnit get unit;
280
270
}
281
271
282
272
/// The result of computing all of the errors contained in a single file, both
0 commit comments