Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: pkg/analysis_server/lib/src/services/refactoring/refactoring_internal.dart

Issue 484733003: Import analysis_services.dart into analysis_server.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 services.src.refactoring; 5 library services.src.refactoring;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_services/correction/status.dart'; 9 import 'package:analysis_server/src/services/correction/status.dart';
10 import 'package:analysis_services/refactoring/refactoring.dart'; 10 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
11 11
12 12
13 /** 13 /**
14 * Abstract implementation of [Refactoring]. 14 * Abstract implementation of [Refactoring].
15 */ 15 */
16 abstract class RefactoringImpl implements Refactoring { 16 abstract class RefactoringImpl implements Refactoring {
17 final List<String> potentialEditIds = <String>[]; 17 final List<String> potentialEditIds = <String>[];
18 18
19 @override 19 @override
20 Future<RefactoringStatus> checkAllConditions() { 20 Future<RefactoringStatus> checkAllConditions() {
21 RefactoringStatus result = new RefactoringStatus(); 21 RefactoringStatus result = new RefactoringStatus();
22 return checkInitialConditions().then((status) { 22 return checkInitialConditions().then((status) {
23 result.addStatus(status); 23 result.addStatus(status);
24 if (result.hasFatalError) { 24 if (result.hasFatalError) {
25 return result; 25 return result;
26 } 26 }
27 return checkFinalConditions().then((status) { 27 return checkFinalConditions().then((status) {
28 result.addStatus(status); 28 result.addStatus(status);
29 return result; 29 return result;
30 }); 30 });
31 }); 31 });
32 } 32 }
33 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698