summary refs log tree commit diff
path: root/src/rustdoc/parse.rs
AgeCommit message (Collapse)AuthorLines
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-3/+3
2012-01-31Require alts to be exhaustiveTim Chevalier-1/+1
middle::check_alt does the work. Lots of changes to add default cases into alts that were previously inexhaustive.
2012-01-26rustdoc: Set up the compiler session properly in prep for running resolveBrian Anderson-1/+16
2012-01-25Keep source file around after parsing.Kevin Atkinson-1/+1
Specifically box the string (to avoid unnecessary copies) and store it in codemap::filemap. Remove the hack in driver::diagnostic that rereads the source from the file and instead just get the source from the filemap. (This commit is also a prerequisite for issue #1612)
2012-01-24rustc: Split diagnostics into "span diagnostics" and "diagnostics".Patrick Walton-1/+2
The former contain a codemap (which is per-crate), and the latter don't. This will be useful in order to allow more than one crate to be compiled in one run of the compiler.
2012-01-23Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str.Kevin Atkinson-1/+3
This correctly fixes issue #1362. chpos/byte_pos are now the offsets within a particular file, but rather the offsets within a virtual file with is formed by combing all of the modules within a crate. Thus, resetting them to 0 causes an overlap and hence, bogus source locations. Fix #1362 by moving chpos/byte_pos to parse_sess so that new_parser_from_source_str has access to them and hence can chose an initial value that is not already been used in the crate. Note that the trigger for bug 1361 was that syntax/ext/expand.rs calls parse_expr_from_source_str (which calls new_parser_from_source_str) using the same codemap as the current crate (and hence causing overlap with files in the crate as new_parser_from_source_str resets the chpos/byte_pos to 0).
2012-01-18rustdoc: Assign AST ids to mod docsBrian Anderson-1/+1
2012-01-17rustdoc: Add rustdocsBrian Anderson-0/+2
2012-01-16rustdoc: Use the parsing method that supports .rc filesBrian Anderson-1/+1
2012-01-16rustdoc: Push imports down into submodulesBrian Anderson-0/+5
2012-01-16rustdoc: Move parse module to its own fileBrian Anderson-0/+21