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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/inline_method_test.dart

Issue 725393002: Issue 21612. Support for multiple returns in the 'Extract Method' refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 test.services.refactoring.inline_method; 5 library test.services.refactoring.inline_method;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart' hide Element; 9 import 'package:analysis_server/src/protocol.dart' hide Element;
10 import 'package:analysis_server/src/services/refactoring/inline_method.dart'; 10 import 'package:analysis_server/src/services/refactoring/inline_method.dart';
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 return _assertSuccessfulRefactoring(r''' 927 return _assertSuccessfulRefactoring(r'''
928 class A { 928 class A {
929 foo() { 929 foo() {
930 print(0); 930 print(0);
931 } 931 }
932 } 932 }
933 '''); 933 ''');
934 } 934 }
935 935
936 test_method_this() { 936 test_method_this() {
937 // TODO
938 indexTestUnit(r''' 937 indexTestUnit(r'''
939 class A { 938 class A {
940 accept(B b) {} 939 accept(B b) {}
941 } 940 }
942 class B { 941 class B {
943 test(A a) { 942 test(A a) {
944 print(this); 943 print(this);
945 a.accept(this); 944 a.accept(this);
946 } 945 }
947 } 946 }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 }); 1418 });
1420 }); 1419 });
1421 }); 1420 });
1422 } 1421 }
1423 1422
1424 void _createRefactoring(String search) { 1423 void _createRefactoring(String search) {
1425 int offset = findOffset(search); 1424 int offset = findOffset(search);
1426 refactoring = new InlineMethodRefactoring(searchEngine, testUnit, offset); 1425 refactoring = new InlineMethodRefactoring(searchEngine, testUnit, offset);
1427 } 1426 }
1428 } 1427 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698