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

Side by Side Diff: pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart

Issue 2639743002: Report StateError if the DartSDK for an AnalysisDriver does not have summary. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/driver_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/src/context/context.dart'; 8 import 'package:analyzer/src/context/context.dart';
9 import 'package:analyzer/src/dart/analysis/byte_store.dart'; 9 import 'package:analyzer/src/dart/analysis/byte_store.dart';
10 import 'package:analyzer/src/dart/analysis/driver.dart' as driver; 10 import 'package:analyzer/src/dart/analysis/driver.dart' as driver;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 var sourceFactory = 111 var sourceFactory =
112 new _SourceFactoryProxy(dartSdk, _pathToUriMap, _uriToPathMap); 112 new _SourceFactoryProxy(dartSdk, _pathToUriMap, _uriToPathMap);
113 var analysisOptions = new AnalysisOptionsImpl(); 113 var analysisOptions = new AnalysisOptionsImpl();
114 _driver = new driver.AnalysisDriver( 114 _driver = new driver.AnalysisDriver(
115 _scheduler, 115 _scheduler,
116 performanceLog, 116 performanceLog,
117 _resourceProvider, 117 _resourceProvider,
118 byteStore, 118 byteStore,
119 fileContentOverlay, 119 fileContentOverlay,
120 'front_end',
120 sourceFactory, 121 sourceFactory,
121 analysisOptions); 122 analysisOptions);
122 _isInitialized = true; 123 _isInitialized = true;
123 } 124 }
124 125
125 @override 126 @override
126 void invalidate(String path) { 127 void invalidate(String path) {
127 throw new UnimplementedError(); 128 throw new UnimplementedError();
128 } 129 }
129 130
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 class _SourceProxy extends BasicSource { 271 class _SourceProxy extends BasicSource {
271 @override 272 @override
272 final String fullName; 273 final String fullName;
273 274
274 _SourceProxy(Uri uri, this.fullName) : super(uri); 275 _SourceProxy(Uri uri, this.fullName) : super(uri);
275 276
276 int get modificationStamp => 0; 277 int get modificationStamp => 0;
277 278
278 noSuchMethod(Invocation invocation) => unimplemented(); 279 noSuchMethod(Invocation invocation) => unimplemented();
279 } 280 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698