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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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
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.refactoring; 5 library services.refactoring;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart' 9 import 'package:analysis_server/protocol/protocol_generated.dart'
10 show RefactoringMethodParameter, SourceChange; 10 show RefactoringMethodParameter, SourceChange;
11 import 'package:analysis_server/src/services/correction/status.dart'; 11 import 'package:analysis_server/src/services/correction/status.dart';
12 import 'package:analysis_server/src/services/refactoring/convert_getter_to_metho d.dart'; 12 import 'package:analysis_server/src/services/refactoring/convert_getter_to_metho d.dart';
13 import 'package:analysis_server/src/services/refactoring/convert_method_to_gette r.dart'; 13 import 'package:analysis_server/src/services/refactoring/convert_method_to_gette r.dart';
14 import 'package:analysis_server/src/services/refactoring/extract_local.dart'; 14 import 'package:analysis_server/src/services/refactoring/extract_local.dart';
15 import 'package:analysis_server/src/services/refactoring/extract_method.dart'; 15 import 'package:analysis_server/src/services/refactoring/extract_method.dart';
16 import 'package:analysis_server/src/services/refactoring/inline_local.dart'; 16 import 'package:analysis_server/src/services/refactoring/inline_local.dart';
17 import 'package:analysis_server/src/services/refactoring/inline_method.dart'; 17 import 'package:analysis_server/src/services/refactoring/inline_method.dart';
18 import 'package:analysis_server/src/services/refactoring/move_file.dart'; 18 import 'package:analysis_server/src/services/refactoring/move_file.dart';
19 import 'package:analysis_server/src/services/refactoring/rename_class_member.dar t'; 19 import 'package:analysis_server/src/services/refactoring/rename_class_member.dar t';
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 element.getAncestor((e) => e is CompilationUnitElement) 455 element.getAncestor((e) => e is CompilationUnitElement)
456 as CompilationUnitElement; 456 as CompilationUnitElement;
457 CompilationUnit unit = _map[unitElement]; 457 CompilationUnit unit = _map[unitElement];
458 if (unit == null) { 458 if (unit == null) {
459 unit = await _astProvider.getResolvedUnitForElement(element); 459 unit = await _astProvider.getResolvedUnitForElement(element);
460 _map[unitElement] = unit; 460 _map[unitElement] = unit;
461 } 461 }
462 return unit; 462 return unit;
463 } 463 }
464 } 464 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698