| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 yaml.scanner; | |
| 6 | |
| 7 import 'package:collection/collection.dart'; | 5 import 'package:collection/collection.dart'; |
| 8 import 'package:string_scanner/string_scanner.dart'; | 6 import 'package:string_scanner/string_scanner.dart'; |
| 9 import 'package:source_span/source_span.dart'; | 7 import 'package:source_span/source_span.dart'; |
| 10 | 8 |
| 11 import 'style.dart'; | 9 import 'style.dart'; |
| 12 import 'token.dart'; | 10 import 'token.dart'; |
| 13 import 'utils.dart'; | 11 import 'utils.dart'; |
| 14 import 'yaml_exception.dart'; | 12 import 'yaml_exception.dart'; |
| 15 | 13 |
| 16 /// A scanner that reads a string of Unicode characters and emits [Token]s. | 14 /// A scanner that reads a string of Unicode characters and emits [Token]s. |
| (...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1675 | 1673 |
| 1676 /// All trailing whitespace is preserved. | 1674 /// All trailing whitespace is preserved. |
| 1677 static const KEEP = const _Chomping("KEEP"); | 1675 static const KEEP = const _Chomping("KEEP"); |
| 1678 | 1676 |
| 1679 final String name; | 1677 final String name; |
| 1680 | 1678 |
| 1681 const _Chomping(this.name); | 1679 const _Chomping(this.name); |
| 1682 | 1680 |
| 1683 String toString() => name; | 1681 String toString() => name; |
| 1684 } | 1682 } |
| OLD | NEW |