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

Unified Diff: tests/compiler/dart2js/cpa_inference_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/bad_output_io_test.dart ('k') | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/cpa_inference_test.dart
diff --git a/tests/compiler/dart2js/cpa_inference_test.dart b/tests/compiler/dart2js/cpa_inference_test.dart
index 87c39eab239a1faefef1dc86e6d1e4fb9f3907ee..6f3aab0d4a8ebd2601c944842cc56b9ba685743a 100644
--- a/tests/compiler/dart2js/cpa_inference_test.dart
+++ b/tests/compiler/dart2js/cpa_inference_test.dart
@@ -5,14 +5,11 @@
import 'dart:async';
import "package:expect/expect.dart";
import "package:async_helper/async_helper.dart";
-import 'package:compiler/implementation/source_file.dart';
import 'package:compiler/implementation/types/types.dart';
import 'package:compiler/implementation/inferrer/concrete_types_inferrer.dart';
-import "parser_helper.dart";
import "compiler_helper.dart";
import "type_mask_test_helper.dart";
-import 'dart:mirrors';
/**
* Finds the node corresponding to the last occurence of the substring
@@ -66,8 +63,8 @@ class AnalysisResult {
map = inferrer.baseTypes.mapBaseType;
nullType = const NullBaseType();
functionType = inferrer.baseTypes.functionBaseType;
- Element mainElement = compiler.mainApp.find('main');
- ast = mainElement.parseNode(compiler);
+ FunctionElement mainElement = compiler.mainApp.find('main');
+ ast = mainElement.node;
}
BaseType base(String className) {
« no previous file with comments | « tests/compiler/dart2js/bad_output_io_test.dart ('k') | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698