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

Unified Diff: pkg/analyzer/test/generated/all_the_rest.dart

Issue 571523002: Issue 20894. Rename 'Class' when rename refactoring is activated on 'Class' in 'new Class.name()'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/all_the_rest.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest.dart b/pkg/analyzer/test/generated/all_the_rest.dart
index 27c303ebaca976142ac8a9afd3514020b229e0b6..c2689897eff09baceaf633e2a0d692d10d832583 100644
--- a/pkg/analyzer/test/generated/all_the_rest.dart
+++ b/pkg/analyzer/test/generated/all_the_rest.dart
@@ -9128,25 +9128,29 @@
// SimpleIdentifier identifier = AstFactory.identifier3("A");
// PrefixedIdentifier prefixedIdentifier = AstFactory.identifier4("pref", identifier);
// InstanceCreationExpression creation = AstFactory.instanceCreationExpression2(Keyword.NEW, AstFactory.typeName3(prefixedIdentifier, []), []);
-// // set ConstructorElement
+// // set ClassElement
// ClassElement classElement = ElementFactory.classElement2("A", []);
+// identifier.staticElement = classElement;
+// // set ConstructorElement
// ConstructorElement constructorElement = ElementFactory.constructorElement2(classElement, null, []);
// creation.constructorName.staticElement = constructorElement;
// // verify that "A" is resolved to ConstructorElement
// Element element = ElementLocator.locate(identifier);
-// JUnitTestCase.assertSame(constructorElement, element);
+// JUnitTestCase.assertSame(classElement, element);
// }
// void test_locate_InstanceCreationExpression_type_simpleIdentifier() {
// // prepare: new A()
// SimpleIdentifier identifier = AstFactory.identifier3("A");
// InstanceCreationExpression creation = AstFactory.instanceCreationExpression2(Keyword.NEW, AstFactory.typeName3(identifier, []), []);
-// // set ConstructorElement
+// // set ClassElement
// ClassElement classElement = ElementFactory.classElement2("A", []);
+// identifier.staticElement = classElement;
+// // set ConstructorElement
// ConstructorElement constructorElement = ElementFactory.constructorElement2(classElement, null, []);
// creation.constructorName.staticElement = constructorElement;
// // verify that "A" is resolved to ConstructorElement
// Element element = ElementLocator.locate(identifier);
-// JUnitTestCase.assertSame(constructorElement, element);
+// JUnitTestCase.assertSame(classElement, element);
// }
// void test_locate_LibraryDirective() {
// AstNode id = _findNodeIn("library", ["library foo;"]);
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698