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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java

Issue 22854024: Rename Identifier.getElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: clean-up and fix Created 7 years, 4 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/resolver/TypePropagationTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java
index db67e3a344b69ac2dbffdd6f35e8fdbf6e8ba393..21e806098189954e0a447bb4d9a11071f568a1c4 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java
@@ -515,7 +515,6 @@ public class TypePropagationTest extends ResolverTestCase {
"}"));
LibraryElement library = resolve(source);
assertErrors(StaticTypeWarningCode.UNDEFINED_METHOD);
- verify(source);
CompilationUnit unit = resolveCompilationUnit(source, library);
FunctionDeclaration function = (FunctionDeclaration) unit.getDeclarations().get(2);
BlockFunctionBody body = (BlockFunctionBody) function.getFunctionExpression().getBody();
@@ -523,7 +522,7 @@ public class TypePropagationTest extends ResolverTestCase {
ReturnStatement statement = (ReturnStatement) ((Block) ifStatement.getThenStatement()).getStatements().get(
0);
MethodInvocation invocation = (MethodInvocation) statement.getExpression();
- assertNotNull(invocation.getMethodName().getElement());
+ assertNotNull(invocation.getMethodName().getPropagatedElement());
}
public void test_is_while() throws Exception {

Powered by Google App Engine
This is Rietveld 408576698