OLD | NEW |
1 Source Maps | 1 Source Maps |
2 =========== | 2 =========== |
3 | 3 |
4 This project implements a Dart pub package to work with source maps. The | 4 This project implements a Dart pub package to work with source maps. The |
5 implementation is based on the [source map version 3 spec][spec] which was | 5 implementation is based on the [source map version 3 spec][spec] which was |
6 originated from the [Closure Compiler][closure] and has been implemented in | 6 originated from the [Closure Compiler][closure] and has been implemented in |
7 Chrome and Firefox. | 7 Chrome and Firefox. |
8 | 8 |
9 In this package we provide: | 9 In this package we provide: |
| 10 |
10 * Data types defining file locations and spans: these are not part of the | 11 * Data types defining file locations and spans: these are not part of the |
11 original source map specification. These data types are great for tracking | 12 original source map specification. These data types are great for tracking |
12 source locations on source maps, but they can also be used by tools to | 13 source locations on source maps, but they can also be used by tools to |
13 reporting useful error messages that include on source locations. | 14 reporting useful error messages that include on source locations. |
14 * A builder that creates a source map programatically and produces the encoded | 15 * A builder that creates a source map programatically and produces the encoded |
15 source map format. | 16 source map format. |
16 * A parser that reads the source map format and provides APIs to read the | 17 * A parser that reads the source map format and provides APIs to read the |
17 mapping information. | 18 mapping information. |
18 | 19 |
19 Some upcoming features we are planning to add to this package are: | 20 Some upcoming features we are planning to add to this package are: |
| 21 |
20 * A printer that lets you generate code, but record source map information in | 22 * A printer that lets you generate code, but record source map information in |
21 the process. | 23 the process. |
22 * A tool that can compose source maps together. This would be useful for | 24 * A tool that can compose source maps together. This would be useful for |
23 instance, if you have 2 tools that produce source maps and you call one with | 25 instance, if you have 2 tools that produce source maps and you call one with |
24 the result of the other. | 26 the result of the other. |
25 | 27 |
26 [closure]: http://code.google.com/p/closure-compiler/wiki/SourceMaps | 28 [closure]: http://code.google.com/p/closure-compiler/wiki/SourceMaps |
27 [spec]: https://docs.google.com/a/google.com/document/d/1U1RGAehQwRypUTovF1KRlpi
OFze0b-_2gc6fAH0KY0k/edit | 29 [spec]: https://docs.google.com/a/google.com/document/d/1U1RGAehQwRypUTovF1KRlpi
OFze0b-_2gc6fAH0KY0k/edit |
OLD | NEW |