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

Unified Diff: tests/compiler/dart2js/type_checker_test.dart

Issue 368833002: Cleanup warnings in unit tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix outdated type annotations. Created 6 years, 5 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 | « tests/compiler/dart2js/resolver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 1c40df45fd3175408f3b51db3196917201b4d7cc..6515eee20ec17922a55184bfe5861c71e43132a4 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -13,7 +13,7 @@ import 'mock_compiler.dart';
import 'parser_helper.dart';
import 'package:compiler/implementation/elements/modelx.dart'
- show ElementX, CompilationUnitElementX, FunctionElementX;
+ show ClassElementX, CompilationUnitElementX, ElementX, FunctionElementX;
import 'package:compiler/implementation/dart2jslib.dart';
@@ -2056,7 +2056,7 @@ analyzeTopLevel(String text, [expectedWarnings]) {
Link<Element> topLevelElements =
parseUnit(text, compiler, library).reverse();
- Element element = null;
+ ElementX element = null;
Node node;
TreeElements mapping;
// Resolve all declarations and members.
@@ -2065,7 +2065,7 @@ analyzeTopLevel(String text, [expectedWarnings]) {
elements = elements.tail) {
element = elements.head;
if (element.isClass) {
- ClassElement classElement = element;
+ ClassElementX classElement = element;
classElement.ensureResolved(compiler);
classElement.forEachLocalMember((Element e) {
if (!e.isSynthesized) {
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698