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); |