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

Side by Side Diff: pkg/analyzer/test/src/dart/analysis/driver_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 library analyzer.test.driver; 5 library analyzer.test.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 List<AnalysisResult> allResults = []; 66 List<AnalysisResult> allResults = [];
67 67
68 AnalysisDriver newDriver() { 68 AnalysisDriver newDriver() {
69 AnalysisDriver driver = new AnalysisDriver( 69 AnalysisDriver driver = new AnalysisDriver(
70 scheduler, 70 scheduler,
71 logger, 71 logger,
72 provider, 72 provider,
73 byteStore, 73 byteStore,
74 contentOverlay, 74 contentOverlay,
75 'test',
75 new SourceFactory( 76 new SourceFactory(
76 [new DartUriResolver(sdk), new ResourceUriResolver(provider)], 77 [new DartUriResolver(sdk), new ResourceUriResolver(provider)],
77 null, 78 null,
78 provider), 79 provider),
79 new AnalysisOptionsImpl()..strongMode = true); 80 new AnalysisOptionsImpl()..strongMode = true);
80 driver.results.forEach(allResults.add); 81 driver.results.forEach(allResults.add);
81 return driver; 82 return driver;
82 } 83 }
83 84
84 void setUp() { 85 void setUp() {
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 String _p(String path) => provider.convertPath(path); 1798 String _p(String path) => provider.convertPath(path);
1798 1799
1799 Future<Null> _waitForIdle() async { 1800 Future<Null> _waitForIdle() async {
1800 await idleStatusMonitor.signal; 1801 await idleStatusMonitor.signal;
1801 } 1802 }
1802 1803
1803 static String _md5(String content) { 1804 static String _md5(String content) {
1804 return hex.encode(md5.convert(UTF8.encode(content)).bytes); 1805 return hex.encode(md5.convert(UTF8.encode(content)).bytes);
1805 } 1806 }
1806 } 1807 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/base.dart ('k') | pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698