OLD | NEW |
| 1 ## 0.1.0 |
| 2 |
| 3 * Switch from `source_maps`' `Span` class to `source_span`'s `SourceSpan` class. |
| 4 |
| 5 * `new StringScanner()`'s `sourceUrl` parameter is now named to make it clear |
| 6 that it can be safely `null`. |
| 7 |
| 8 * `new StringScannerException()` takes different arguments in a different order |
| 9 to match `SpanFormatException`. |
| 10 |
| 11 * `StringScannerException.string` has been renamed to |
| 12 `StringScannerException.source` to match the `FormatException` interface. |
| 13 |
1 ## 0.0.3 | 14 ## 0.0.3 |
2 | 15 |
3 * Make `StringScannerException` inherit from source_map's | 16 * Make `StringScannerException` inherit from source_map's |
4 [`SpanFormatException`][]. | 17 [`SpanFormatException`][]. |
5 | 18 |
6 [SpanFormatException]: (http://www.dartdocs.org/documentation/source_maps/0.9.2/
index.html#source_maps/source_maps.SpanFormatException) | 19 [SpanFormatException]: (http://www.dartdocs.org/documentation/source_maps/0.9.2/
index.html#source_maps/source_maps.SpanFormatException) |
7 | 20 |
8 ## 0.0.2 | 21 ## 0.0.2 |
9 | 22 |
10 * `new StringScanner()` now takes an optional `sourceUrl` argument that provides | 23 * `new StringScanner()` now takes an optional `sourceUrl` argument that provides |
11 the URL of the source file. This is used for error reporting. | 24 the URL of the source file. This is used for error reporting. |
12 | 25 |
13 * Add `StringScanner.readChar()` and `StringScanner.peekChar()` methods for | 26 * Add `StringScanner.readChar()` and `StringScanner.peekChar()` methods for |
14 doing character-by-character scanning. | 27 doing character-by-character scanning. |
15 | 28 |
16 * Scanners now throw `StringScannerException`s which provide more detailed | 29 * Scanners now throw `StringScannerException`s which provide more detailed |
17 access to information about the errors that were thrown and can provide | 30 access to information about the errors that were thrown and can provide |
18 terminal-colored messages. | 31 terminal-colored messages. |
19 | 32 |
20 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line | 33 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line |
21 and column information of the text being scanned. | 34 and column information of the text being scanned. |
22 | 35 |
23 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as | 36 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as |
24 [source map][] `Span` objects. | 37 [source map][] `Span` objects. |
25 | 38 |
26 [source_map]: http://pub.dartlang.org/packages/source_maps | 39 [source_map]: http://pub.dartlang.org/packages/source_maps |
OLD | NEW |