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 387eb82f00e116839320ed89582b54929bff499b..44c2bc892532035e13277f487b75916a07b2ac58 100644 |
--- a/tests/compiler/dart2js/type_checker_test.dart |
+++ b/tests/compiler/dart2js/type_checker_test.dart |
@@ -2213,7 +2213,7 @@ void generateOutput(MockCompiler compiler, String text) { |
var endToken = node.getEndToken(); |
int begin = beginToken.charOffset; |
int end = endToken.charOffset + endToken.charCount; |
- SourceFile sourceFile = new StringSourceFile('analysis', text); |
+ SourceFile sourceFile = new StringSourceFile.fromName('analysis', text); |
print(sourceFile.getLocationMessage(message.message.toString(), |
begin, end)); |
} |