Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: pkg/analyzer/lib/src/summary/package_bundle_reader.dart

Issue 2050083002: Fix equality between subclasses of Source (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/test/generated/test_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698