Uses old Rust 2015
|0.1.3||Apr 12, 2020|
|0.1.2||Jun 30, 2019|
|0.1.1||Mar 3, 2018|
|0.1.0||May 29, 2017|
#175 in Data structures
9,177 downloads per month
Used in 26 crates (15 directly)
A data structure for tracking source positions in language implementations, inspired by the SourceMap (formerly CodeMap) type in rustc's libsyntax.
CodeMap tracks all source files and maps positions within them to linear indexes as if all
source files were concatenated. This allows a source position to be represented by a small
Pos indexing into the
CodeMap, under the assumption that the total amount of parsed
source code will not exceed 4GiB. The
CodeMap can look up the source file, line, and column
Span, as well as provide source code snippets for error reporting.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.