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

Side by Side Diff: pkg/compiler/lib/src/js/js_source_mapping.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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/js/js_debug.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library js.source_mapping; 5 library js.source_mapping;
6 6
7 import 'js.dart'; 7 import 'js.dart';
8 import '../io/code_output.dart' show SourceLocations; 8 import '../io/code_output.dart' show
9 BufferedCodeOutput,
10 CodeBuffer,
11 SourceLocations;
9 import '../io/source_information.dart' show 12 import '../io/source_information.dart' show
10 SourceLocation, 13 SourceLocation,
11 SourceInformation, 14 SourceInformation,
12 SourceInformationStrategy; 15 SourceInformationStrategy;
13 16
14 /// [SourceInformationStrategy] that can associate source information with 17 /// [SourceInformationStrategy] that can associate source information with
15 /// JavaScript output. 18 /// JavaScript output.
16 class JavaScriptSourceInformationStrategy 19 class JavaScriptSourceInformationStrategy
17 extends SourceInformationStrategy { 20 extends SourceInformationStrategy {
18 const JavaScriptSourceInformationStrategy(); 21 const JavaScriptSourceInformationStrategy();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 60 }
58 } 61 }
59 62
60 /// A processor that associates [SourceInformation] with code position of 63 /// A processor that associates [SourceInformation] with code position of
61 /// JavaScript [Node]s. 64 /// JavaScript [Node]s.
62 class SourceInformationProcessor extends CodePositionListener { 65 class SourceInformationProcessor extends CodePositionListener {
63 const SourceInformationProcessor(); 66 const SourceInformationProcessor();
64 67
65 /// Process the source information and code positions for the [node] and all 68 /// Process the source information and code positions for the [node] and all
66 /// its children. 69 /// its children.
67 void process(Node node) {} 70 void process(Node node, BufferedCodeOutput code) {}
68 } 71 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js/js_debug.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698