| 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 | 7 |
| 8 import 'util/util.dart'; | 8 import 'util/util.dart'; |
| 9 import 'scanner/scannerlib.dart' show Token; | 9 import 'scanner/scannerlib.dart' show Token; |
| 10 import 'source_file.dart'; | 10 import 'source_file.dart'; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 return line; | 189 return line; |
| 190 } | 190 } |
| 191 | 191 |
| 192 int getColumn() => sourceFile.getColumn(getLine(), token.charOffset); | 192 int getColumn() => sourceFile.getColumn(getLine(), token.charOffset); |
| 193 | 193 |
| 194 String getSourceName() { | 194 String getSourceName() { |
| 195 if (token.isIdentifier()) return token.value; | 195 if (token.isIdentifier()) return token.value; |
| 196 return null; | 196 return null; |
| 197 } | 197 } |
| 198 | 198 |
| 199 bool isValid() => token.charOffset < sourceFile.text.length; | 199 bool isValid() => token.charOffset < sourceFile.length; |
| 200 } | 200 } |
| OLD | NEW |