| 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 library test.services.refactoring; | 5 library test.services.refactoring; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/protocol/protocol.dart' | 9 import 'package:analysis_server/plugin/protocol/protocol.dart' |
| 10 show | 10 show |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 } | 180 } |
| 181 } | 181 } |
| 182 | 182 |
| 183 void setUp() { | 183 void setUp() { |
| 184 super.setUp(); | 184 super.setUp(); |
| 185 if (enableNewAnalysisDriver) { | 185 if (enableNewAnalysisDriver) { |
| 186 searchEngine = new SearchEngineImpl2([driver]); | 186 searchEngine = new SearchEngineImpl2([driver]); |
| 187 astProvider = new AstProviderForDriver(driver); | 187 astProvider = new AstProviderForDriver(driver); |
| 188 } else { | 188 } else { |
| 189 index = createMemoryIndex(); | 189 index = createMemoryIndex(); |
| 190 searchEngine = new SearchEngineImpl(index); | 190 searchEngine = new SearchEngineImpl( |
| 191 index, (_) => new AstProviderForContext(context)); |
| 191 astProvider = new AstProviderForContext(context); | 192 astProvider = new AstProviderForContext(context); |
| 192 } | 193 } |
| 193 } | 194 } |
| 194 } | 195 } |
| OLD | NEW |