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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ResolutionCopierTest.java

Issue 268673006: Fix for 10469- removal of the ArgumentDefinitionTest Ast node from the analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase before commit Created 6 years, 8 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
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ResolutionCopierTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ResolutionCopierTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ResolutionCopierTest.java
index 74523f649d9f0c85db30cd78f020aa3a96fbad9a..021e626179a760b82107e341a8f7e979933a06fa 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ResolutionCopierTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ResolutionCopierTest.java
@@ -15,7 +15,6 @@ package com.google.dart.engine.parser;
import com.google.dart.engine.EngineTestCase;
import com.google.dart.engine.ast.Annotation;
-import com.google.dart.engine.ast.ArgumentDefinitionTest;
import com.google.dart.engine.ast.AsExpression;
import com.google.dart.engine.ast.AssignmentExpression;
import com.google.dart.engine.ast.BinaryExpression;
@@ -75,7 +74,6 @@ import com.google.dart.engine.scanner.TokenType;
import com.google.dart.engine.type.Type;
import static com.google.dart.engine.ast.AstFactory.annotation;
-import static com.google.dart.engine.ast.AstFactory.argumentDefinitionTest;
import static com.google.dart.engine.ast.AstFactory.asExpression;
import static com.google.dart.engine.ast.AstFactory.assignmentExpression;
import static com.google.dart.engine.ast.AstFactory.binaryExpression;
@@ -136,20 +134,6 @@ public class ResolutionCopierTest extends EngineTestCase {
assertSame(element, toNode.getElement());
}
- public void test_visitArgumentDefinitionTest() {
- String identifier = "p";
- ArgumentDefinitionTest fromNode = argumentDefinitionTest(identifier);
- Type propagatedType = classElement("A").getType();
- fromNode.setPropagatedType(propagatedType);
- Type staticType = classElement("B").getType();
- fromNode.setStaticType(staticType);
- ArgumentDefinitionTest toNode = argumentDefinitionTest(identifier);
-
- ResolutionCopier.copyResolutionData(fromNode, toNode);
- assertSame(propagatedType, toNode.getPropagatedType());
- assertSame(staticType, toNode.getStaticType());
- }
-
public void test_visitAsExpression() {
AsExpression fromNode = asExpression(identifier("x"), typeName("A"));
Type propagatedType = classElement("A").getType();

Powered by Google App Engine
This is Rietveld 408576698