| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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('source_map_builder'); | 5 #library('source_map_builder'); |
| 6 | 6 |
| 7 #import('dart:json'); | 7 #import('dart:json'); |
| 8 | 8 |
| 9 #import('source_file.dart'); | 9 #import('source_file.dart'); |
| 10 | 10 |
| 11 class SourceMapBuilder { | 11 class SourceMapBuilder { |
| 12 static final int VLQ_BASE_SHIFT = 5; | 12 static const int VLQ_BASE_SHIFT = 5; |
| 13 static final int VLQ_BASE_MASK = (1 << 5) - 1; | 13 static const int VLQ_BASE_MASK = (1 << 5) - 1; |
| 14 static final int VLQ_CONTINUATION_BIT = 1 << 5; | 14 static const int VLQ_CONTINUATION_BIT = 1 << 5; |
| 15 static final int VLQ_CONTINUATION_MASK = 1 << 5; | 15 static const int VLQ_CONTINUATION_MASK = 1 << 5; |
| 16 static final String BASE64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn' | 16 static const String BASE64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn' |
| 17 'opqrstuvwxyz0123456789+/'; | 17 'opqrstuvwxyz0123456789+/'; |
| 18 | 18 |
| 19 List<_Entry> entries; | 19 List<_Entry> entries; |
| 20 | 20 |
| 21 Map<String, int> sourceUrlMap; | 21 Map<String, int> sourceUrlMap; |
| 22 List<String> sourceUrlList; | 22 List<String> sourceUrlList; |
| 23 Map<String, int> sourceNameMap; | 23 Map<String, int> sourceNameMap; |
| 24 List<String> sourceNameList; | 24 List<String> sourceNameList; |
| 25 | 25 |
| 26 int previousTargetLine; | 26 int previousTargetLine; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 } | 149 } |
| 150 | 150 |
| 151 class _Entry { | 151 class _Entry { |
| 152 SourceFile sourceFile; | 152 SourceFile sourceFile; |
| 153 int sourceOffset; | 153 int sourceOffset; |
| 154 String sourceName; | 154 String sourceName; |
| 155 int targetOffset; | 155 int targetOffset; |
| 156 _Entry(this.sourceFile, this.sourceOffset, this.sourceName, | 156 _Entry(this.sourceFile, this.sourceOffset, this.sourceName, |
| 157 this.targetOffset); | 157 this.targetOffset); |
| 158 } | 158 } |
| OLD | NEW |