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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // // This code was auto-generated, is not intended to be edited, and is subject to 4 // // This code was auto-generated, is not intended to be edited, and is subject to
5 // // significant change. Please see the README file for more information. 5 // // significant change. Please see the README file for more information.
6 // abstract class AbstractScannerTest extends JUnitTestCase { 6 // abstract class AbstractScannerTest extends JUnitTestCase {
7 // void test_tokenize_attribute() { 7 // void test_tokenize_attribute() {
8 // _tokenize("<html bob=\"one two\">", <Object> [LT, "html", "bob", EQ, "\"o ne two\"", GT]); 8 // _tokenize("<html bob=\"one two\">", <Object> [LT, "html", "bob", EQ, "\"o ne two\"", GT]);
9 // } 9 // }
10 // void test_tokenize_comment() { 10 // void test_tokenize_comment() {
(...skipping 9110 matching lines...) Expand 10 before | Expand all | Expand 10 after
9121 // void test_locate_InstanceCreationExpression() { 9121 // void test_locate_InstanceCreationExpression() {
9122 // AstNode node = _findNodeIndexedIn("A(", 0, ["class A {}", "void main() {" , " new A();", "}"]); 9122 // AstNode node = _findNodeIndexedIn("A(", 0, ["class A {}", "void main() {" , " new A();", "}"]);
9123 // Element element = ElementLocator.locate(node); 9123 // Element element = ElementLocator.locate(node);
9124 // EngineTestCase.assertInstanceOf((obj) => obj is ConstructorElement, Const ructorElement, element); 9124 // EngineTestCase.assertInstanceOf((obj) => obj is ConstructorElement, Const ructorElement, element);
9125 // } 9125 // }
9126 // void test_locate_InstanceCreationExpression_type_prefixedIdentifier() { 9126 // void test_locate_InstanceCreationExpression_type_prefixedIdentifier() {
9127 // // prepare: new pref.A() 9127 // // prepare: new pref.A()
9128 // SimpleIdentifier identifier = AstFactory.identifier3("A"); 9128 // SimpleIdentifier identifier = AstFactory.identifier3("A");
9129 // PrefixedIdentifier prefixedIdentifier = AstFactory.identifier4("pref", id entifier); 9129 // PrefixedIdentifier prefixedIdentifier = AstFactory.identifier4("pref", id entifier);
9130 // InstanceCreationExpression creation = AstFactory.instanceCreationExpressi on2(Keyword.NEW, AstFactory.typeName3(prefixedIdentifier, []), []); 9130 // InstanceCreationExpression creation = AstFactory.instanceCreationExpressi on2(Keyword.NEW, AstFactory.typeName3(prefixedIdentifier, []), []);
9131 // // set ClassElement
9132 // ClassElement classElement = ElementFactory.classElement2("A", []);
9133 // identifier.staticElement = classElement;
9131 // // set ConstructorElement 9134 // // set ConstructorElement
9132 // ClassElement classElement = ElementFactory.classElement2("A", []);
9133 // ConstructorElement constructorElement = ElementFactory.constructorElement 2(classElement, null, []); 9135 // ConstructorElement constructorElement = ElementFactory.constructorElement 2(classElement, null, []);
9134 // creation.constructorName.staticElement = constructorElement; 9136 // creation.constructorName.staticElement = constructorElement;
9135 // // verify that "A" is resolved to ConstructorElement 9137 // // verify that "A" is resolved to ConstructorElement
9136 // Element element = ElementLocator.locate(identifier); 9138 // Element element = ElementLocator.locate(identifier);
9137 // JUnitTestCase.assertSame(constructorElement, element); 9139 // JUnitTestCase.assertSame(classElement, element);
9138 // } 9140 // }
9139 // void test_locate_InstanceCreationExpression_type_simpleIdentifier() { 9141 // void test_locate_InstanceCreationExpression_type_simpleIdentifier() {
9140 // // prepare: new A() 9142 // // prepare: new A()
9141 // SimpleIdentifier identifier = AstFactory.identifier3("A"); 9143 // SimpleIdentifier identifier = AstFactory.identifier3("A");
9142 // InstanceCreationExpression creation = AstFactory.instanceCreationExpressi on2(Keyword.NEW, AstFactory.typeName3(identifier, []), []); 9144 // InstanceCreationExpression creation = AstFactory.instanceCreationExpressi on2(Keyword.NEW, AstFactory.typeName3(identifier, []), []);
9145 // // set ClassElement
9146 // ClassElement classElement = ElementFactory.classElement2("A", []);
9147 // identifier.staticElement = classElement;
9143 // // set ConstructorElement 9148 // // set ConstructorElement
9144 // ClassElement classElement = ElementFactory.classElement2("A", []);
9145 // ConstructorElement constructorElement = ElementFactory.constructorElement 2(classElement, null, []); 9149 // ConstructorElement constructorElement = ElementFactory.constructorElement 2(classElement, null, []);
9146 // creation.constructorName.staticElement = constructorElement; 9150 // creation.constructorName.staticElement = constructorElement;
9147 // // verify that "A" is resolved to ConstructorElement 9151 // // verify that "A" is resolved to ConstructorElement
9148 // Element element = ElementLocator.locate(identifier); 9152 // Element element = ElementLocator.locate(identifier);
9149 // JUnitTestCase.assertSame(constructorElement, element); 9153 // JUnitTestCase.assertSame(classElement, element);
9150 // } 9154 // }
9151 // void test_locate_LibraryDirective() { 9155 // void test_locate_LibraryDirective() {
9152 // AstNode id = _findNodeIn("library", ["library foo;"]); 9156 // AstNode id = _findNodeIn("library", ["library foo;"]);
9153 // Element element = ElementLocator.locate(id); 9157 // Element element = ElementLocator.locate(id);
9154 // EngineTestCase.assertInstanceOf((obj) => obj is LibraryElement, LibraryEl ement, element); 9158 // EngineTestCase.assertInstanceOf((obj) => obj is LibraryElement, LibraryEl ement, element);
9155 // } 9159 // }
9156 // void test_locate_MethodDeclaration() { 9160 // void test_locate_MethodDeclaration() {
9157 // AstNode id = _findNodeIn("m", ["class A {", " void m() {}", "}"]); 9161 // AstNode id = _findNodeIn("m", ["class A {", " void m() {}", "}"]);
9158 // MethodDeclaration declaration = id.getAncestor((node) => node is MethodDe claration); 9162 // MethodDeclaration declaration = id.getAncestor((node) => node is MethodDe claration);
9159 // Element element = ElementLocator.locate(declaration); 9163 // Element element = ElementLocator.locate(declaration);
(...skipping 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after
13937 // final List<String> _keyValuePairs; 13941 // final List<String> _keyValuePairs;
13938 // XmlValidator_Attributes(this._keyValuePairs); 13942 // XmlValidator_Attributes(this._keyValuePairs);
13939 // } 13943 // }
13940 // class XmlValidator_Tag { 13944 // class XmlValidator_Tag {
13941 // final String _tag; 13945 // final String _tag;
13942 // final XmlValidator_Attributes _attributes; 13946 // final XmlValidator_Attributes _attributes;
13943 // final String _content; 13947 // final String _content;
13944 // final List<XmlValidator_Tag> _children; 13948 // final List<XmlValidator_Tag> _children;
13945 // XmlValidator_Tag(this._tag, this._attributes, this._content, this._children ); 13949 // XmlValidator_Tag(this._tag, this._attributes, this._content, this._children );
13946 // } 13950 // }
OLDNEW
« 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