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

Unified Diff: pkg/compiler/lib/src/js_model/js_strategy.dart

Issue 2974663002: Compute source spans for IR nodes and J/K-elements (Closed)
Patch Set: Created 3 years, 5 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
Index: pkg/compiler/lib/src/js_model/js_strategy.dart
diff --git a/pkg/compiler/lib/src/js_model/js_strategy.dart b/pkg/compiler/lib/src/js_model/js_strategy.dart
index 6ac16ac3a025236f61fdccaeca19ec543f388267..a1aaef41b053c77dc5169f5c6737880660d1fe38 100644
--- a/pkg/compiler/lib/src/js_model/js_strategy.dart
+++ b/pkg/compiler/lib/src/js_model/js_strategy.dart
@@ -5,6 +5,7 @@
library dart2js.js_model.strategy;
import '../closure.dart' show ClosureConversionTask;
+import '../common.dart';
import '../common/tasks.dart';
import '../common_elements.dart';
import '../compiler.dart';
@@ -208,6 +209,11 @@ class JsBackendStrategy implements KernelBackendStrategy {
closedWorld,
selectorConstraintsStrategy);
}
+
+ @override
+ SourceSpan spanFromSpannable(Spannable spannable, Entity currentElement) {
+ return _elementMap.getSourceSpan(spannable, currentElement);
+ }
}
class JsRuntimeTypesNeed implements RuntimeTypesNeed {

Powered by Google App Engine
This is Rietveld 408576698