Chromium Code Reviews| 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 e51d55a9746aedaa2dd0d716c7b851729bc961aa..af417c1777f192f64dca970e0cb564931a661f59 100644 |
| --- a/tests/compiler/dart2js/source_mapping_test.dart |
| +++ b/tests/compiler/dart2js/source_mapping_test.dart |
| @@ -30,10 +30,9 @@ void testSourceMapLocations(String codeWithMarkers) { |
| CodeBuffer buffer = compileAll(sourceFile); |
| Set<int> locations = new Set<int>(); |
| - buffer.forEachSourceLocation((var element, var token, int offset) { |
| - if (element != null && |
| - element.getCompilationUnit().script.file == sourceFile) { |
| - locations.add(token.charOffset); |
| + buffer.forEachSourceLocation((int offset, var sourcePosition) { |
|
ahe
2012/09/08 08:55:50
What is the offset?
podivilov
2012/09/10 11:13:23
It's an offset in the buffer. Renamed to targetOff
|
| + if (sourcePosition != null && sourcePosition.sourceFile == sourceFile) { |
| + locations.add(sourcePosition.token.charOffset); |
| } |
| }); |