| 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 edit.domain; | 5 library edit.domain; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 void _reset() { | 325 void _reset() { |
| 326 refactoring = null; | 326 refactoring = null; |
| 327 feedback = null; | 327 feedback = null; |
| 328 initStatus = new RefactoringStatus(); | 328 initStatus = new RefactoringStatus(); |
| 329 optionsStatus = new RefactoringStatus(); | 329 optionsStatus = new RefactoringStatus(); |
| 330 finalStatus = new RefactoringStatus(); | 330 finalStatus = new RefactoringStatus(); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void _sendResultResponse() { | 333 void _sendResultResponse() { |
| 334 if (feedback != null) { | 334 if (feedback != null) { |
| 335 result.feedback = feedback.toJson(); | 335 result.feedback = feedback; |
| 336 } | 336 } |
| 337 // set problems | 337 // set problems |
| 338 { | 338 { |
| 339 RefactoringStatus status = new RefactoringStatus(); | 339 RefactoringStatus status = new RefactoringStatus(); |
| 340 status.addStatus(initStatus); | 340 status.addStatus(initStatus); |
| 341 status.addStatus(optionsStatus); | 341 status.addStatus(optionsStatus); |
| 342 status.addStatus(finalStatus); | 342 status.addStatus(finalStatus); |
| 343 result.problems = status.problems; | 343 result.problems = status.problems; |
| 344 } | 344 } |
| 345 // send the response | 345 // send the response |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 378 } |
| 379 if (refactoring is RenameRefactoring) { | 379 if (refactoring is RenameRefactoring) { |
| 380 RenameRefactoring renameRefactoring = refactoring; | 380 RenameRefactoring renameRefactoring = refactoring; |
| 381 RenameOptions renameOptions = params.options; | 381 RenameOptions renameOptions = params.options; |
| 382 renameRefactoring.newName = renameOptions.newName; | 382 renameRefactoring.newName = renameOptions.newName; |
| 383 return renameRefactoring.checkNewName(); | 383 return renameRefactoring.checkNewName(); |
| 384 } | 384 } |
| 385 return new RefactoringStatus(); | 385 return new RefactoringStatus(); |
| 386 } | 386 } |
| 387 } | 387 } |
| OLD | NEW |