about summary refs log tree commit diff
path: root/src/rustdoc/attr_parser.rs
AgeCommit message (Collapse)AuthorLines
2012-01-24rustdoc: Parse fn failure conditionsBrian Anderson-4/+15
2012-01-24rustdoc: Add parsing of const attribute docsBrian Anderson-2/+48
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-23Revert "rustdoc: Get the crate brief description from the 'desc' attr"Brian Anderson-13/+2
This reverts commit 521e58a3c4f45ffc30a914dd0bb517945d87a503. Some crates use 'desc', some 'comment' - I want them to just use 'doc'
2012-01-23rustdoc: Get the crate brief description from the 'desc' attrBrian Anderson-2/+13
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-4/+4
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-18rustdoc: Add mod docs attrs to the doc treeBrian Anderson-1/+1
2012-01-18rustdoc: Parse module docsBrian Anderson-79/+154
2012-01-18rustdoc: Parse crate name from #[link] attrBrian Anderson-3/+39
2012-01-18rustdoc: Put fn docs inside fn bodiesBrian Anderson-3/+5
2012-01-18rustdoc: Document attr_parser::doc_metaBrian Anderson-0/+3
2012-01-17rustdoc: Add rustdocsBrian Anderson-0/+7
2012-01-17libstd => libcoreLenny222-1/+1
2012-01-17spin-off rustdocs tuple code to libstdLenny222-3/+4
2012-01-16rustc: Move some attribute accessors from rustdoc to rustcBrian Anderson-52/+5
2012-01-16rustdoc: Move fst and snd into util modBrian Anderson-12/+2
2012-01-16rustdoc: Use attr API in attr_parserBrian Anderson-60/+119
2012-01-16rustdoc: Add a fallthrough path to meta_item search in parse_fnBrian Anderson-0/+1
2012-01-16rustdoc: Remove non-attribute related stuff from attr_parserBrian Anderson-76/+60
2012-01-16rustdoc: Remove attribute parsing from extract moduleBrian Anderson-19/+6
2012-01-16rustdoc: Convert fn return type to retdoc recordBrian Anderson-2/+5
2012-01-16rustdoc: Change fndoc's arg list to a vec from mapBrian Anderson-12/+10
2012-01-16rustdoc: Push imports down into submodulesBrian Anderson-0/+3
2012-01-16rustdoc: Attach the AST node id to fndocsBrian Anderson-10/+21
2012-01-16rustdoc: Add regression tests for existing attr parsing behaviorBrian Anderson-6/+87
2012-01-16rustdoc: Change parse_fn to take a vector of attributesBrian Anderson-1/+39
2012-01-16rustdoc: Rename parse_compound_fndoc to parse_fnBrian Anderson-2/+2
2012-01-16rustdoc: Move parse_compound_fndoc into mod attr_parserBrian Anderson-0/+67