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

Unified Diff: pkg/analysis_server/test/services/refactoring/inline_method_test.dart

Issue 733663002: Issue 21617. Replace explicit 'this' references and clean ups. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/services/refactoring/inline_method.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/refactoring/inline_method_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/inline_method_test.dart b/pkg/analysis_server/test/services/refactoring/inline_method_test.dart
index 5a87e765debb4113e3eee2aae27a0321a9ac1672..40366ebc7382544f69f4296234ff43d94fb4de82 100644
--- a/pkg/analysis_server/test/services/refactoring/inline_method_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/inline_method_test.dart
@@ -933,6 +933,41 @@ class A {
''');
}
+ test_method_this() {
+ // TODO
+ indexTestUnit(r'''
+class A {
+ accept(B b) {}
+}
+class B {
+ test(A a) {
+ print(this);
+ a.accept(this);
+ }
+}
+main() {
+ B b = new B();
+ A a = new A();
+ b.test(a);
+}
+''');
+ _createRefactoring('test(A a) {');
+ // validate change
+ return _assertSuccessfulRefactoring(r'''
+class A {
+ accept(B b) {}
+}
+class B {
+}
+main() {
+ B b = new B();
+ A a = new A();
+ print(b);
+ a.accept(b);
+}
+''');
+ }
+
test_method_unqualifiedUnvocation() {
indexTestUnit(r'''
class A {
« no previous file with comments | « pkg/analysis_server/lib/src/services/refactoring/inline_method.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698