OLD | NEW |
1 import 'dart:io' as io; | 1 import 'dart:io' as io; |
2 | 2 |
3 import 'package:analyzer/dart/element/element.dart'; | 3 import 'package:analyzer/dart/element/element.dart'; |
4 import 'package:analyzer/src/context/cache.dart'; | 4 import 'package:analyzer/src/context/cache.dart'; |
5 import 'package:analyzer/src/context/context.dart'; | 5 import 'package:analyzer/src/context/context.dart'; |
6 import 'package:analyzer/src/dart/element/element.dart'; | 6 import 'package:analyzer/src/dart/element/element.dart'; |
7 import 'package:analyzer/src/generated/engine.dart'; | 7 import 'package:analyzer/src/generated/engine.dart'; |
8 import 'package:analyzer/src/generated/java_io.dart'; | 8 import 'package:analyzer/src/generated/java_io.dart'; |
9 import 'package:analyzer/src/generated/resolver.dart'; | 9 import 'package:analyzer/src/generated/resolver.dart'; |
10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 @override | 96 @override |
97 int get modificationStamp => 0; | 97 int get modificationStamp => 0; |
98 | 98 |
99 @override | 99 @override |
100 String get shortName => pathos.basename(fullName); | 100 String get shortName => pathos.basename(fullName); |
101 | 101 |
102 @override | 102 @override |
103 UriKind get uriKind => UriKind.PACKAGE_URI; | 103 UriKind get uriKind => UriKind.PACKAGE_URI; |
104 | 104 |
105 @override | 105 @override |
106 bool operator ==(Object object) => | 106 bool operator ==(Object object) => object is Source && object.uri == uri; |
107 object is InSummarySource && object.uri == uri; | |
108 | 107 |
109 @override | 108 @override |
110 bool exists() => true; | 109 bool exists() => true; |
111 | 110 |
112 @override | 111 @override |
113 String toString() => uri.toString(); | 112 String toString() => uri.toString(); |
114 } | 113 } |
115 | 114 |
116 /** | 115 /** |
117 * The [ResultProvider] that provides results using summary resynthesizer. | 116 * The [ResultProvider] that provides results using summary resynthesizer. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 * also provides [summaryPath]. | 346 * also provides [summaryPath]. |
348 */ | 347 */ |
349 class _InSummaryFallbackSource extends FileBasedSource | 348 class _InSummaryFallbackSource extends FileBasedSource |
350 implements InSummarySource { | 349 implements InSummarySource { |
351 @override | 350 @override |
352 final String summaryPath; | 351 final String summaryPath; |
353 | 352 |
354 _InSummaryFallbackSource(JavaFile file, Uri uri, this.summaryPath) | 353 _InSummaryFallbackSource(JavaFile file, Uri uri, this.summaryPath) |
355 : super(file, uri); | 354 : super(file, uri); |
356 } | 355 } |
OLD | NEW |