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

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

Issue 263103003: Remove warnings from dart2js test-suite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. Created 6 years, 7 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/source_mapping_test.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | 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 9ef843ffccf24a0f2e0eeb0cd3e46ee246899e72..5a0644c811696644fdaa76133c43a08ab6bd7856 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -2075,8 +2075,9 @@ analyze(String text, {errors, warnings, List hints, List infos}) {
void generateOutput(String text) {
for (WarningMessage message in compiler.warnings) {
- var beginToken = message.node.getBeginToken();
- var endToken = message.node.getEndToken();
+ Node node = message.node;
+ var beginToken = node.getBeginToken();
+ var endToken = node.getEndToken();
int begin = beginToken.charOffset;
int end = endToken.charOffset + endToken.charCount;
SourceFile sourceFile = new StringSourceFile('analysis', text);
« no previous file with comments | « tests/compiler/dart2js/source_mapping_test.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698