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

Unified Diff: pkg/compiler/lib/src/io/source_information.dart

Issue 1617083002: Base JavaScript code position computation on JavaScript tracer. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 11 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/io/source_information.dart
diff --git a/pkg/compiler/lib/src/io/source_information.dart b/pkg/compiler/lib/src/io/source_information.dart
index 18557558b989e54116bd6fb8fa8f4bbca4ad312e..0138b41701689e3dfc03c317f9bc5f31f1a1213b 100644
--- a/pkg/compiler/lib/src/io/source_information.dart
+++ b/pkg/compiler/lib/src/io/source_information.dart
@@ -21,6 +21,8 @@ bool useNewSourceInfo =
/// Interface for passing source information, for instance for use in source
/// maps, through the backend.
abstract class SourceInformation extends JavaScriptNodeSourceInformation {
+ const SourceInformation();
+
SourceSpan get sourceSpan;
/// The source location associated with the start of the JS node.
@@ -47,6 +49,12 @@ class SourceInformationStrategy {
SourceInformationBuilder createBuilderForContext(AstElement element) {
return const SourceInformationBuilder();
}
+
+ /// Generate [SourceInformation] marker for non-preamble code.
+ SourceInformation buildSourceMappedMarker() => null;
+
+ /// Called when compilation has completed.
+ void onComplete() {}
}
/// Interface for generating [SourceInformation].
« no previous file with comments | « pkg/compiler/lib/src/io/position_information.dart ('k') | pkg/compiler/lib/src/io/start_end_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698