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

Unified Diff: pkg/compiler/lib/src/js/js_source_mapping.dart

Issue 2682813005: Add NoSourceLocationMarker in old source-info engine. (Closed)
Patch Set: Cleanup. Created 3 years, 10 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/js_source_mapping.dart
diff --git a/pkg/compiler/lib/src/js/js_source_mapping.dart b/pkg/compiler/lib/src/js/js_source_mapping.dart
index df49903d8a41ec64b3775a9cdd528dd282d4f83e..11278374bf815195faf6b967a368e465e979b0fb 100644
--- a/pkg/compiler/lib/src/js/js_source_mapping.dart
+++ b/pkg/compiler/lib/src/js/js_source_mapping.dart
@@ -25,8 +25,15 @@ class JavaScriptSourceInformationStrategy extends SourceInformationStrategy {
class CodePositionListener {
const CodePositionListener();
+ /// Called to associate [node] with the provided start position.
+ ///
+ /// The nodes are seen in pre-traversal order.
+ void onStartPosition(Node node, int startPosition) {}
+
/// Called to associate [node] with the provided start, end and closing
/// positions.
+ ///
+ /// The nodes are seen in post-traversal order.
void onPositions(
Node node, int startPosition, int endPosition, int closingPosition) {}
}

Powered by Google App Engine
This is Rietveld 408576698