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

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

Issue 10915122: Fix source locations for inlined and patched functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 3 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 | « lib/compiler/implementation/ssa/nodes.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
+ if (sourcePosition != null && sourcePosition.sourceFile == sourceFile) {
+ locations.add(sourcePosition.token.charOffset);
}
});
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698