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; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart' | 7 import 'package:analysis_server/protocol/protocol_generated.dart' |
10 show | 8 show |
11 RefactoringProblem, | 9 RefactoringProblem, |
12 RefactoringProblemSeverity, | 10 RefactoringProblemSeverity, |
13 SourceChange, | 11 SourceChange, |
14 SourceEdit, | 12 SourceEdit, |
15 SourceFileEdit; | 13 SourceFileEdit; |
16 import 'package:analysis_server/src/services/correction/status.dart'; | 14 import 'package:analysis_server/src/services/correction/status.dart'; |
17 import 'package:analysis_server/src/services/index/index.dart'; | 15 import 'package:analysis_server/src/services/index/index.dart'; |
18 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 16 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
19 import 'package:analysis_server/src/services/search/search_engine.dart'; | 17 import 'package:analysis_server/src/services/search/search_engine.dart'; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 searchEngine = new SearchEngineImpl2([driver]); | 184 searchEngine = new SearchEngineImpl2([driver]); |
187 astProvider = new AstProviderForDriver(driver); | 185 astProvider = new AstProviderForDriver(driver); |
188 } else { | 186 } else { |
189 index = createMemoryIndex(); | 187 index = createMemoryIndex(); |
190 searchEngine = new SearchEngineImpl( | 188 searchEngine = new SearchEngineImpl( |
191 index, (_) => new AstProviderForContext(context)); | 189 index, (_) => new AstProviderForContext(context)); |
192 astProvider = new AstProviderForContext(context); | 190 astProvider = new AstProviderForContext(context); |
193 } | 191 } |
194 } | 192 } |
195 } | 193 } |
OLD | NEW |