| 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 | |
| 3 // 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 |
| 4 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 5 | 4 |
| 6 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 7 import 'package:source_maps/source_maps.dart' hide Printer; | 6 import 'package:source_maps/source_maps.dart' hide Printer; |
| 8 import 'package:source_span/source_span.dart' show SourceLocation; | 7 import 'package:source_span/source_span.dart' show SourceLocation; |
| 9 | 8 |
| 10 import '../js_ast/js_ast.dart' as JS; | 9 import '../js_ast/js_ast.dart' as JS; |
| 11 | 10 |
| 12 class SourceMapPrintingContext extends JS.SimpleJavaScriptPrintingContext { | 11 class SourceMapPrintingContext extends JS.SimpleJavaScriptPrintingContext { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 sourceUrl: sourcePath, | 79 sourceUrl: sourcePath, |
| 81 line: loc.lineNumber - 1, | 80 line: loc.lineNumber - 1, |
| 82 column: loc.columnNumber - 1), | 81 column: loc.columnNumber - 1), |
| 83 new SourceLocation(buffer.length, line: _line, column: _column), | 82 new SourceLocation(buffer.length, line: _line, column: _column), |
| 84 identifier); | 83 identifier); |
| 85 } | 84 } |
| 86 } | 85 } |
| 87 | 86 |
| 88 const int _LF = 10; | 87 const int _LF = 10; |
| 89 const int _CR = 13; | 88 const int _CR = 13; |
| OLD | NEW |