| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|