Index: tests/compiler/dart2js/source_mapping_test.dart |
diff --git a/tests/compiler/dart2js/source_mapping_test.dart b/tests/compiler/dart2js/source_mapping_test.dart |
index 77ab4d0103d34b38bedcb70b201e64a286e3a563..a54caaca3b2bc87f5d7056ddba170975a5977e89 100644 |
--- a/tests/compiler/dart2js/source_mapping_test.dart |
+++ b/tests/compiler/dart2js/source_mapping_test.dart |
@@ -7,6 +7,7 @@ import "package:expect/expect.dart"; |
import "package:async_helper/async_helper.dart"; |
import "package:compiler/src/io/code_output.dart"; |
import 'package:compiler/src/io/source_file.dart'; |
+import 'package:compiler/src/io/source_information.dart'; |
import "mock_compiler.dart"; |
import 'package:compiler/src/js_backend/js_backend.dart'; |
@@ -33,10 +34,10 @@ void testSourceMapLocations(String codeWithMarkers) { |
SourceFile sourceFile = new StringSourceFile.fromName('<test script>', code); |
asyncTest(() => compileAll(sourceFile).then((CodeOutput output) { |
Set<int> locations = new Set<int>(); |
- output.forEachSourceLocation((int offset, var sourcePosition) { |
+ output.forEachSourceLocation((int offset, SourceLocation sourcePosition) { |
if (sourcePosition != null && |
sourcePosition.sourceUri == sourceFile.uri) { |
- locations.add(sourcePosition.token.charOffset); |
+ locations.add(sourcePosition.offset); |
} |
}); |