| Index: pkg/analysis_server/test/services/refactoring/extract_local_test.dart
|
| diff --git a/pkg/analysis_server/test/services/refactoring/extract_local_test.dart b/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
|
| index a4e647791504b58f65a96c187579735482586016..a5c29c2bba44538d8fea77824b5d70df7575aeeb 100644
|
| --- a/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
|
| +++ b/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
|
| @@ -706,6 +706,25 @@ main() {
|
| ''');
|
| }
|
|
|
| + test_singleExpression_hasParseError_expectedSemicolon() {
|
| + verifyNoTestUnitErrors = false;
|
| + indexTestUnit('''
|
| +main(p) {
|
| + foo
|
| + p.bar.baz;
|
| +}
|
| +''');
|
| + _createRefactoringForString('p.bar');
|
| + // apply refactoring
|
| + return _assertSuccessfulRefactoring('''
|
| +main(p) {
|
| + foo
|
| + var res = p.bar;
|
| + res.baz;
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_singleExpression_inExpressionBody() {
|
| indexTestUnit('''
|
| main() {
|
|
|