| 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.inline_local; | 5 library test.services.refactoring.inline_local; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol.dart' hide Element; | 7 import 'package:analysis_server/src/protocol.dart' hide Element; |
| 8 import 'package:analysis_server/src/services/refactoring/inline_local.dart'; | 8 import 'package:analysis_server/src/services/refactoring/inline_local.dart'; |
| 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
| 10 import 'package:analysis_testing/reflective_tests.dart'; | 10 import '../../reflective_tests.dart'; |
| 11 import 'package:analyzer/src/generated/ast.dart'; | 11 import 'package:analyzer/src/generated/ast.dart'; |
| 12 import 'package:analyzer/src/generated/element.dart'; | 12 import 'package:analyzer/src/generated/element.dart'; |
| 13 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 14 | 14 |
| 15 import 'abstract_refactoring.dart'; | 15 import 'abstract_refactoring.dart'; |
| 16 | 16 |
| 17 | 17 |
| 18 main() { | 18 main() { |
| 19 groupSep = ' | '; | 19 groupSep = ' | '; |
| 20 runReflectiveTests(InlineLocalTest); | 20 runReflectiveTests(InlineLocalTest); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL); | 255 assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL); |
| 256 }); | 256 }); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void _createRefactoring(String search) { | 259 void _createRefactoring(String search) { |
| 260 SimpleIdentifier identifier = findIdentifier(search); | 260 SimpleIdentifier identifier = findIdentifier(search); |
| 261 LocalVariableElement element = identifier.bestElement; | 261 LocalVariableElement element = identifier.bestElement; |
| 262 refactoring = new InlineLocalRefactoring(searchEngine, testUnit, element); | 262 refactoring = new InlineLocalRefactoring(searchEngine, testUnit, element); |
| 263 } | 263 } |
| 264 } | 264 } |
| OLD | NEW |