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

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

Issue 2503803003: Revert "Connect analyzer's AnalysisError object to front_end's CompilationError." (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « pkg/analyzer/lib/src/string_source.dart ('k') | pkg/analyzer/lib/src/task/html.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/file_system/file_system.dart'; 4 import 'package:analyzer/file_system/file_system.dart';
5 import 'package:analyzer/src/context/cache.dart'; 5 import 'package:analyzer/src/context/cache.dart';
6 import 'package:analyzer/src/context/context.dart'; 6 import 'package:analyzer/src/context/context.dart';
7 import 'package:analyzer/src/dart/element/element.dart'; 7 import 'package:analyzer/src/dart/element/element.dart';
8 import 'package:analyzer/src/generated/engine.dart'; 8 import 'package:analyzer/src/generated/engine.dart';
9 import 'package:analyzer/src/generated/java_io.dart'; 9 import 'package:analyzer/src/generated/java_io.dart';
10 import 'package:analyzer/src/generated/resolver.dart'; 10 import 'package:analyzer/src/generated/resolver.dart';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analyzer/src/generated/source_io.dart'; 12 import 'package:analyzer/src/generated/source_io.dart';
13 import 'package:analyzer/src/generated/utilities_dart.dart'; 13 import 'package:analyzer/src/generated/utilities_dart.dart';
14 import 'package:analyzer/src/source/source_resource.dart'; 14 import 'package:analyzer/src/source/source_resource.dart';
15 import 'package:analyzer/src/summary/format.dart'; 15 import 'package:analyzer/src/summary/format.dart';
16 import 'package:analyzer/src/summary/idl.dart'; 16 import 'package:analyzer/src/summary/idl.dart';
17 import 'package:analyzer/src/summary/resynthesize.dart'; 17 import 'package:analyzer/src/summary/resynthesize.dart';
18 import 'package:analyzer/src/task/dart.dart'; 18 import 'package:analyzer/src/task/dart.dart';
19 import 'package:analyzer/src/util/fast_uri.dart'; 19 import 'package:analyzer/src/util/fast_uri.dart';
20 import 'package:analyzer/task/dart.dart'; 20 import 'package:analyzer/task/dart.dart';
21 import 'package:analyzer/task/general.dart'; 21 import 'package:analyzer/task/general.dart';
22 import 'package:analyzer/task/model.dart'; 22 import 'package:analyzer/task/model.dart';
23 import 'package:path/path.dart' as pathos; 23 import 'package:path/path.dart' as pathos;
24 import 'package:source_span/source_span.dart' as source_span;
25 24
26 /** 25 /**
27 * The [ResultProvider] that provides results from input package summaries. 26 * The [ResultProvider] that provides results from input package summaries.
28 */ 27 */
29 class InputPackagesResultProvider extends ResynthesizerResultProvider { 28 class InputPackagesResultProvider extends ResynthesizerResultProvider {
30 InputPackagesResultProvider( 29 InputPackagesResultProvider(
31 InternalAnalysisContext context, SummaryDataStore dataStore) 30 InternalAnalysisContext context, SummaryDataStore dataStore)
32 : super(context, dataStore) { 31 : super(context, dataStore) {
33 AnalysisContext sdkContext = context.sourceFactory.dartSdk.context; 32 AnalysisContext sdkContext = context.sourceFactory.dartSdk.context;
34 createResynthesizer(sdkContext, sdkContext.typeProvider); 33 createResynthesizer(sdkContext, sdkContext.typeProvider);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 @override 98 @override
100 bool get isInSystemLibrary => uri.scheme == DartUriResolver.DART_SCHEME; 99 bool get isInSystemLibrary => uri.scheme == DartUriResolver.DART_SCHEME;
101 100
102 @override 101 @override
103 int get modificationStamp => 0; 102 int get modificationStamp => 0;
104 103
105 @override 104 @override
106 String get shortName => pathos.basename(fullName); 105 String get shortName => pathos.basename(fullName);
107 106
108 @override 107 @override
109 source_span.SourceFile get sourceFile =>
110 throw new StateError('Tried to get location info for InSummarySource');
111
112 @override
113 UriKind get uriKind => UriKind.PACKAGE_URI; 108 UriKind get uriKind => UriKind.PACKAGE_URI;
114 109
115 @override 110 @override
116 bool operator ==(Object object) => object is Source && object.uri == uri; 111 bool operator ==(Object object) => object is Source && object.uri == uri;
117 112
118 @override 113 @override
119 bool exists() => true; 114 bool exists() => true;
120 115
121 @override 116 @override
122 String toString() => uri.toString(); 117 String toString() => uri.toString();
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 */ 497 */
503 @deprecated 498 @deprecated
504 class _InSummaryFallbackSource extends FileBasedSource 499 class _InSummaryFallbackSource extends FileBasedSource
505 implements InSummarySource { 500 implements InSummarySource {
506 @override 501 @override
507 final String summaryPath; 502 final String summaryPath;
508 503
509 _InSummaryFallbackSource(JavaFile file, Uri uri, this.summaryPath) 504 _InSummaryFallbackSource(JavaFile file, Uri uri, this.summaryPath)
510 : super(file, uri); 505 : super(file, uri);
511 } 506 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/string_source.dart ('k') | pkg/analyzer/lib/src/task/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698