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

Side by Side Diff: pkg/analysis_server/test/services/search/search_engine2_test.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:analysis_server/src/services/search/search_engine.dart'; 7 import 'package:analysis_server/src/services/search/search_engine.dart';
8 import 'package:analysis_server/src/services/search/search_engine_internal2.dart '; 8 import 'package:analysis_server/src/services/search/search_engine_internal2.dart ';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 assertHasElement('B'); 233 assertHasElement('B');
234 assertHasElement('b'); 234 assertHasElement('b');
235 } 235 }
236 236
237 AnalysisDriver _newDriver() => new AnalysisDriver( 237 AnalysisDriver _newDriver() => new AnalysisDriver(
238 scheduler, 238 scheduler,
239 logger, 239 logger,
240 provider, 240 provider,
241 byteStore, 241 byteStore,
242 contentOverlay, 242 contentOverlay,
243 'test',
243 new SourceFactory( 244 new SourceFactory(
244 [new DartUriResolver(sdk), new ResourceUriResolver(provider)], 245 [new DartUriResolver(sdk), new ResourceUriResolver(provider)],
245 null, 246 null,
246 provider), 247 provider),
247 new AnalysisOptionsImpl()..strongMode = true); 248 new AnalysisOptionsImpl()..strongMode = true);
248 249
249 String _p(String path) => provider.convertPath(path); 250 String _p(String path) => provider.convertPath(path);
250 } 251 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698