OLD | NEW |
(Empty) | |
| 1 ## 0.1.4 |
| 2 |
| 3 * Add `new SpanScanner.eager()` for creating a `SpanScanner` that eagerly |
| 4 computes its current line and column numbers. |
| 5 |
| 6 ## 0.1.3+2 |
| 7 |
| 8 * Fix `LineScanner`'s handling of carriage returns to match that of |
| 9 `SpanScanner`. |
| 10 |
| 11 ## 0.1.3+1 |
| 12 |
| 13 * Fixed the homepage URL. |
| 14 |
| 15 ## 0.1.3 |
| 16 |
| 17 * Add an optional `endState` argument to `SpanScanner.spanFrom`. |
| 18 |
| 19 ## 0.1.2 |
| 20 |
| 21 * Add `StringScanner.substring`, which returns a substring of the source string. |
| 22 |
| 23 ## 0.1.1 |
| 24 |
| 25 * Declare `SpanScanner`'s exposed `SourceSpan`s and `SourceLocation`s to be |
| 26 `FileSpan`s and `FileLocation`s. They always were underneath, but callers may |
| 27 now rely on it. |
| 28 |
| 29 * Add `SpanScanner.location`, which returns the scanner's current |
| 30 `SourceLocation`. |
| 31 |
| 32 ## 0.1.0 |
| 33 |
| 34 * Switch from `source_maps`' `Span` class to `source_span`'s `SourceSpan` class. |
| 35 |
| 36 * `new StringScanner()`'s `sourceUrl` parameter is now named to make it clear |
| 37 that it can be safely `null`. |
| 38 |
| 39 * `new StringScannerException()` takes different arguments in a different order |
| 40 to match `SpanFormatException`. |
| 41 |
| 42 * `StringScannerException.string` has been renamed to |
| 43 `StringScannerException.source` to match the `FormatException` interface. |
| 44 |
| 45 ## 0.0.3 |
| 46 |
| 47 * Make `StringScannerException` inherit from source_map's |
| 48 [`SpanFormatException`][]. |
| 49 |
| 50 [SpanFormatException]: (http://www.dartdocs.org/documentation/source_maps/0.9.2/
index.html#source_maps/source_maps.SpanFormatException) |
| 51 |
| 52 ## 0.0.2 |
| 53 |
| 54 * `new StringScanner()` now takes an optional `sourceUrl` argument that provides |
| 55 the URL of the source file. This is used for error reporting. |
| 56 |
| 57 * Add `StringScanner.readChar()` and `StringScanner.peekChar()` methods for |
| 58 doing character-by-character scanning. |
| 59 |
| 60 * Scanners now throw `StringScannerException`s which provide more detailed |
| 61 access to information about the errors that were thrown and can provide |
| 62 terminal-colored messages. |
| 63 |
| 64 * Add a `LineScanner` subclass of `StringScanner` that automatically tracks line |
| 65 and column information of the text being scanned. |
| 66 |
| 67 * Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as |
| 68 [source map][] `Span` objects. |
| 69 |
| 70 [source_map]: http://pub.dartlang.org/packages/source_maps |
OLD | NEW |