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

Side by Side Diff: pkg/analyzer/test/src/dart/analysis/base.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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/dart/element/visitor.dart'; 8 import 'package:analyzer/dart/element/visitor.dart';
9 import 'package:analyzer/file_system/file_system.dart'; 9 import 'package:analyzer/file_system/file_system.dart';
10 import 'package:analyzer/file_system/memory_file_system.dart'; 10 import 'package:analyzer/file_system/memory_file_system.dart';
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 testProject = _p('/test/lib'); 103 testProject = _p('/test/lib');
104 testFile = _p('/test/lib/test.dart'); 104 testFile = _p('/test/lib/test.dart');
105 logger = new PerformanceLog(logBuffer); 105 logger = new PerformanceLog(logBuffer);
106 scheduler = new AnalysisDriverScheduler(logger); 106 scheduler = new AnalysisDriverScheduler(logger);
107 driver = new AnalysisDriver( 107 driver = new AnalysisDriver(
108 scheduler, 108 scheduler,
109 logger, 109 logger,
110 provider, 110 provider,
111 byteStore, 111 byteStore,
112 contentOverlay, 112 contentOverlay,
113 'test',
113 new SourceFactory([ 114 new SourceFactory([
114 new DartUriResolver(sdk), 115 new DartUriResolver(sdk),
115 new PackageMapUriResolver(provider, <String, List<Folder>>{ 116 new PackageMapUriResolver(provider, <String, List<Folder>>{
116 'test': [provider.getFolder(testProject)] 117 'test': [provider.getFolder(testProject)]
117 }), 118 }),
118 new ResourceUriResolver(provider) 119 new ResourceUriResolver(provider)
119 ], null, provider), 120 ], null, provider),
120 new AnalysisOptionsImpl()..strongMode = true); 121 new AnalysisOptionsImpl()..strongMode = true);
121 scheduler.start(); 122 scheduler.start();
122 driver.status.lastWhere((status) { 123 driver.status.lastWhere((status) {
(...skipping 29 matching lines...) Expand all
152 await _completer.future; 153 await _completer.future;
153 _completer = new Completer<Null>(); 154 _completer = new Completer<Null>();
154 } 155 }
155 156
156 void notify() { 157 void notify() {
157 if (!_completer.isCompleted) { 158 if (!_completer.isCompleted) {
158 _completer.complete(null); 159 _completer.complete(null);
159 } 160 }
160 } 161 }
161 } 162 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test_case.dart ('k') | pkg/analyzer/test/src/dart/analysis/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698