OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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/protocol/protocol.dart'; | 7 import 'package:analysis_server/protocol/protocol.dart'; |
8 import 'package:analysis_server/protocol/protocol_generated.dart' | 8 import 'package:analysis_server/protocol/protocol_generated.dart' |
9 hide AnalysisOptions; | 9 hide AnalysisOptions; |
10 import 'package:analysis_server/src/analysis_server.dart'; | 10 import 'package:analysis_server/src/analysis_server.dart'; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // | 132 // |
133 // Create an SDK in the mock file system. | 133 // Create an SDK in the mock file system. |
134 // | 134 // |
135 new MockSdk( | 135 new MockSdk( |
136 generateSummaryFiles: generateSummaryFiles, | 136 generateSummaryFiles: generateSummaryFiles, |
137 resourceProvider: resourceProvider); | 137 resourceProvider: resourceProvider); |
138 // | 138 // |
139 // Create server | 139 // Create server |
140 // | 140 // |
141 AnalysisServerOptions options = new AnalysisServerOptions(); | 141 AnalysisServerOptions options = new AnalysisServerOptions(); |
142 options.enableNewAnalysisDriver = true; | |
143 return new AnalysisServer( | 142 return new AnalysisServer( |
144 serverChannel, | 143 serverChannel, |
145 resourceProvider, | 144 resourceProvider, |
146 packageMapProvider, | 145 packageMapProvider, |
147 index, | 146 index, |
148 serverPlugin, | 147 serverPlugin, |
149 options, | 148 options, |
150 new DartSdkManager(resourceProvider.convertPath('/'), true), | 149 new DartSdkManager(resourceProvider.convertPath('/'), true), |
151 InstrumentationService.NULL_SERVICE); | 150 InstrumentationService.NULL_SERVICE); |
152 } | 151 } |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 Future<List<Null>> stopAll() async { | 363 Future<List<Null>> stopAll() async { |
365 fail('Unexpected invocation of stopAll'); | 364 fail('Unexpected invocation of stopAll'); |
366 return null; | 365 return null; |
367 } | 366 } |
368 | 367 |
369 @override | 368 @override |
370 void whitelistEverything() { | 369 void whitelistEverything() { |
371 fail('Unexpected invocation of whitelistEverything'); | 370 fail('Unexpected invocation of whitelistEverything'); |
372 } | 371 } |
373 } | 372 } |
OLD | NEW |