Brian Anderson
47d468f08c
core: Store reexporting result and either. Closes #1997
2012-03-16 15:14:37 -07:00
Brian Anderson
ddbd02aaf2
rustdoc: Allow elipses to appear in brief descriptions. Closes #2003
2012-03-16 14:50:30 -07:00
Brian Anderson
0b0ecc662b
rustdoc: Escape backslashes
2012-03-16 12:20:29 -07:00
Marijn Haverbeke
0e5da379dd
Turn on monomorphization by default
2012-03-15 08:59:29 +01:00
Brian Anderson
3864d6d845
std: Rename the hashmap constructors to conform to new standards
...
Instead of using the new_ prefix just name them after their type
2012-03-14 18:19:08 -07:00
Brian Anderson
b968c8e6cd
Name types after their modules instead of 't'
2012-03-13 15:14:17 -07:00
Brian Anderson
cd72b1f848
Overhaul constructor naming in libs
2012-03-13 11:07:22 -07:00
Graydon Hoare
6f5853f5a1
Libc/os/run/rand/io reorganization. Close #1373 . Close #1638 .
...
- Move io, run and rand to core.
- Remove incorrect ctypes module (use libc).
- Remove os-specific modules for os and fs.
- Split fs between core::path and core::os.
2012-03-12 20:08:29 -07:00
Brian Anderson
8f071bb841
rustdoc: Add indexes to native mods. Closes #1963
2012-03-11 16:36:20 -07:00
Tim Chevalier
eb9d0e89d1
wibble
2012-03-10 20:36:48 -08:00
Brian Anderson
91e5a1c8b3
core: Remove the nearly empty math module
...
This mod only had two functions, all of whose users have been changed
to use the uint module.
2012-03-10 17:43:19 -08:00
Brian Anderson
a5368fb6d8
rustdoc: Put native mods on their own pages. Closes #1959
2012-03-10 16:44:48 -08:00
Brian Anderson
474ad2e4de
rustdoc: Fix native mod breakage
2012-03-10 16:43:38 -08:00
Brian Anderson
4bbe33c8eb
rustdoc: Write page titles
2012-03-10 16:21:23 -08:00
Brian Anderson
78d539927a
rustdoc: Remove unused fn
2012-03-10 15:42:08 -08:00
Brian Anderson
d54d9b1cab
rustdoc: Fix generation of impl links. Closes #1953
2012-03-10 15:38:52 -08:00
Tim Chevalier
a0521971b1
Merge branch 'master' into floop-for-snapshot
2012-03-09 22:16:52 -08:00
Brian Anderson
e2dad03f44
rustdoc: Change the formatting for enum variants
2012-03-09 21:20:51 -08:00
Brian Anderson
f9755c666d
rustdoc: Simplify attribute parsing
2012-03-09 18:13:14 -08:00
Brian Anderson
effe4559d2
rustdoc: Accept the first sentence as the brief description
2012-03-09 18:13:14 -08:00
Brian Anderson
4fc5b822e2
rustdoc: Simplify the relation between the brief and long description
...
Brief is just used for indexes now
2012-03-09 18:13:14 -08:00
Brian Anderson
0905ad2bbe
rustdoc: Vastly simplify the document model
...
Don't attempt to impose any structure for documenting arguments, return
values, etc.
2012-03-09 17:24:56 -08:00
Brian Anderson
9f4c0d71e5
rustdoc: Update the demo module
2012-03-09 17:24:56 -08:00
Brian Anderson
e399263b5e
rustdoc: Write sections in markdown
2012-03-09 17:24:56 -08:00
Brian Anderson
0ad8265fee
rustdoc: Add the concept of 'sections'
2012-03-09 17:24:55 -08:00
Tim Chevalier
321fd80219
Add an infinite loop construct
...
Add a loop {} construct for infinite loops, and use it in test
cases. See #1906 for details.
2012-03-09 16:40:58 -08:00
Brian Anderson
256146bba4
rustdoc: Rename desc_pass to text_pass
2012-03-08 17:00:03 -08:00
Tim Chevalier
0c5fdc8745
Rename last to last_opt, last_unsafe to last
...
As per discussion on IRC. I am about to file an RFC for further
discussion about the more general issue of whether to enforce
invariants through types, typestate, or dynamic checks, but for now,
removing the misleading name "last_unsafe".
2012-03-08 15:25:56 -08:00
Brian Anderson
57596cbe53
rustdoc: Improve formatting of subsection headers
2012-03-08 15:05:13 -08:00
Brian Anderson
7d686d6372
rustdoc: Format return values consistently
2012-03-08 15:05:13 -08:00
Brian Anderson
6ad653bb31
rustdoc: Add some more demo docs
2012-03-08 15:05:13 -08:00
Brian Anderson
ac8b2c8354
rustdoc: Don't bother reporting the type of return values
2012-03-08 15:05:13 -08:00
Brian Anderson
5c28b2c1d1
rustdoc: Don't bother reporting the type of arguments
...
This is already displayed in the function signature. Simpler this way.
2012-03-08 15:05:13 -08:00
Tim Chevalier
ebc1d3e704
Rename last_total to last_unsafe
...
See Issue 1943 for any discussion (reopen it if necessary).
Closes #1943
2012-03-08 13:07:31 -08:00
Marijn Haverbeke
fd465f91a8
Drop collect_items pass, create decls on demand
...
This solves a problem with inlined functions that have inner functions.
2012-03-08 21:17:32 +01:00
Brian Anderson
bdec806848
rustdoc: Look for pandoc in ~/.cabal
2012-03-07 19:22:02 -08:00
Patrick Walton
c9375fed8d
stdlib: Stop incurring vtable dispatch costs when hashmaps are used
...
This required changing almost all users of hashmaps to import the hashmap interface first.
The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07 17:35:13 -08:00
Patrick Walton
c245d9e980
Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"
...
This reverts commit f0250a23d3
.
2012-03-07 16:56:45 -08:00
Patrick Walton
f0250a23d3
stdlib: Stop incurring vtable dispatch costs when hashmaps are used
...
This required changing almost all users of hashmaps to import the hashmap interface first.
The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07 16:51:31 -08:00
Brian Anderson
a9bd76b3c1
rustdoc: Implement more rules for generating internal pandoc links
2012-03-07 15:45:16 -08:00
Brian Anderson
7f66df714a
rustdoc: Support #[doc(hidden)]
2012-03-07 14:50:39 -08:00
Brian Anderson
e55d7d6add
rustdoc: Remove escaping pass
2012-03-06 20:31:05 -08:00
Brian Anderson
e536e8a933
rustdoc: Don't escape characters between backticks
2012-03-06 20:16:53 -08:00
Brian Anderson
cf8f5b7606
rustdoc: Escape HTML special characters
2012-03-06 17:46:52 -08:00
Brian Anderson
29ac3c811d
rustdoc: Put brief descriptions in the indexes
2012-03-06 17:16:25 -08:00
Brian Anderson
a4ff220133
rustdoc: Write links correctly for multi-page docs
2012-03-06 17:16:25 -08:00
Brian Anderson
801b02b25d
rustdoc: Parallelize markdown_pass
2012-03-06 17:16:25 -08:00
Brian Anderson
513d956dce
rustdoc: Run pandoc in a way that won't deadlock waiting for IO
2012-03-06 17:16:25 -08:00
Brian Anderson
dea19b25c9
rustdoc: Detect when pandoc isn't available
2012-03-06 14:48:47 -08:00
Brian Anderson
b8c8e43381
rustdoc: Add some more error reporting for pandoc
2012-03-06 14:48:47 -08:00
Brian Anderson
fc9b55d65f
rustdoc: Write a new file for each page
2012-03-06 14:48:47 -08:00
Brian Anderson
fbd8a76e8a
rustdoc: Add a pass to split the document into pages
2012-03-06 14:48:47 -08:00
Brian Anderson
3c0e984449
rustdoc: Remove Google's copyright notice
...
There is no Google code left.
2012-03-06 11:25:27 -08:00
Niko Matsakis
712dd23541
make inline enabled by default
2012-03-06 09:01:40 -08:00
Marijn Haverbeke
4e4bd585cd
Track all exports in exp_map
...
This is needed because the reachability checker needs to be able to
follow exports.
Issue #1934
2012-03-06 17:11:30 +01:00
Brian Anderson
1d826b735c
rustdoc: Build appropriate filenames for pages
2012-03-04 00:23:54 -08:00
Brian Anderson
0e3cee747a
rustdoc: Convert markdown writer to a writer_factory
2012-03-03 23:56:38 -08:00
Brian Anderson
0b2ffa854f
rustdoc: Simplify the markdown_pass interface a bit
2012-03-03 23:20:40 -08:00
Brian Anderson
2cdb662022
rustdoc: Remove some bogus error handling around process spawning
2012-03-03 22:09:31 -08:00
Brian Anderson
f8742b476f
rustdoc: Introduce the concept of a 'page'
2012-03-03 21:56:17 -08:00
Brian Anderson
3d991bac6c
rustdoc: Whitespace
2012-03-02 16:27:31 -08:00
Brian Anderson
87b9d67b66
rustdoc: Write indexes in output
2012-03-02 16:20:53 -08:00
Brian Anderson
3d67939c41
rustdoc: Begin constructing indexes
2012-03-02 15:17:27 -08:00
Brian Anderson
78bfdb11c8
Revert "rust: xfail-fast run-pass/cci_no_inline_exe"
...
This reverts commit 95099cddcf
.
2012-03-02 13:46:02 -08:00
Brian Anderson
95099cddcf
rust: xfail-fast run-pass/cci_no_inline_exe
2012-03-02 13:44:40 -08:00
Brian Anderson
8478349b8b
rustdoc: Remove some debug logging
2012-03-02 02:12:12 -08:00
Brian Anderson
4056082833
rustdoc: Extract markdown header logic. Needed for indexing
2012-03-01 18:13:22 -08:00
Brian Anderson
4991943f4e
rustdoc: Stop having pandoc write the TOC
...
We will generate them ourselves
2012-03-01 17:29:53 -08:00
Brian Anderson
3cd8c57a54
rustdoc: Add index records to the doc tree
2012-03-01 16:34:09 -08:00
Brian Anderson
3cec2d6954
rustdoc: Teach rustdoc to run pandoc
2012-03-01 14:21:25 -08:00
Brian Anderson
9208684e74
rustdoc: Extract markdown_writer from markdown_pass
2012-02-29 23:45:51 -08:00
Brian Anderson
516f87f860
rustdoc: Write markdown to a file instead of stdout
2012-02-29 23:45:51 -08:00
Brian Anderson
ad82a031f2
rustdoc: Use unique types for writing markdown output
...
No shared types allowed.
2012-02-29 23:45:51 -08:00
Brian Anderson
2ac6dbc9ba
rustdoc: Refactor markdown_pass
2012-02-29 23:45:51 -08:00
Niko Matsakis
2dd5b3ace6
optionally enforce local variable mutability
2012-02-29 19:31:15 -08:00
Brian Anderson
58e2083c0a
rustdoc: Parse command line opts
2012-02-28 21:36:44 -08:00
Brian Anderson
6c9527ab79
rustdoc: Add -h flag
2012-02-28 21:36:44 -08:00
Niko Matsakis
bceea8339a
change def's that are always local to use node_id, add --inline opt
2012-02-28 06:31:28 -08:00
Brian Anderson
9e4962a26e
rustdoc: Fix bustage
2012-02-27 18:29:37 -08:00
Brian Anderson
01a1c98d09
rustdoc: Clean up pass names
2012-02-27 18:11:12 -08:00
Brian Anderson
98c31aaaff
rustdoc: Time passes
2012-02-27 18:07:16 -08:00
Brian Anderson
8fdb213eb2
rustdoc: Optimize some closures to avoid copying
2012-02-26 23:49:37 -08:00
Brian Anderson
3bfa457039
rustdoc: Rename util mod to par
2012-02-26 23:10:12 -08:00
Brian Anderson
c15127fe3e
rustdoc: Do all maps as util::anymap
2012-02-26 23:07:03 -08:00
Brian Anderson
a11638f0d9
rustdoc: Remove some unused exports
2012-02-26 22:58:53 -08:00
Brian Anderson
0f054dfaee
rustdoc: Add parallel folds for native mods
2012-02-26 22:58:24 -08:00
Brian Anderson
ac34cf96ad
rustdoc: Use default_any_fold in some tests
2012-02-26 22:55:05 -08:00
Brian Anderson
59d6ec8bd9
rustdoc: Refactor some of the map code
2012-02-26 22:43:08 -08:00
Brian Anderson
4675f86084
rustdoc: Do less copying in util::parmap
2012-02-26 22:08:52 -08:00
Brian Anderson
222cfbec64
rustdoc: Add command line option parsing and a config record
2012-02-26 18:15:10 -08:00
Brian Anderson
16d290d10c
rustdoc: Reexport native functions
2012-02-24 15:59:34 -08:00
Brian Anderson
396540f19d
rustdoc: Don't prune reexports
2012-02-24 15:43:57 -08:00
Brian Anderson
9b009ea23d
rustdoc: Fix some remaining bugs around native mods
2012-02-24 15:22:57 -08:00
Brian Anderson
6e31983179
rustdoc: Sort native mods
2012-02-24 15:15:27 -08:00
Brian Anderson
5a86313387
rustdoc: Write markdown for native mods and fns
2012-02-24 15:07:08 -08:00
Brian Anderson
16010058a6
rustdoc: Add types for native functions
2012-02-24 15:06:58 -08:00
Brian Anderson
2576a3c2c9
rustdoc: Extract attribute docs from native stuffs
2012-02-24 14:22:13 -08:00
Brian Anderson
f053f06973
rustdoc: Record paths to native functions
2012-02-24 14:08:47 -08:00
Brian Anderson
681e5beac4
rustdoc: Remove a pointer that's no longer needed
2012-02-24 13:53:28 -08:00
Brian Anderson
fdea1c414c
rustdoc: Extract doc nodes for native mods
2012-02-24 13:50:40 -08:00
Brian Anderson
ba173d8409
rustdoc: Add doc node for native mods
2012-02-24 13:34:35 -08:00
Brian Anderson
9982a2a841
rustc: Don't add duplicate entries to exp_map
2012-02-23 21:52:41 -08:00
Brian Anderson
710258cc76
rustdoc: Make reexports work in the crate module
2012-02-23 18:06:43 -08:00
Marijn Haverbeke
780f8277f4
Finish cleanup of core::str
...
Closes #1849
2012-02-23 17:00:19 +01:00
Kevin Cantu
7782f5d692
(core::str) remove len_bytes alias
2012-02-23 17:00:19 +01:00
Kevin Cantu
1b957c0942
(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes with find[_from]
2012-02-23 17:00:19 +01:00
Kevin Cantu
454b53a7c2
(core::char) rename slice -> slice_chars
2012-02-23 17:00:19 +01:00
Kevin Cantu
98447f5236
(core::str) mostly rename len -> len_chars
2012-02-23 17:00:19 +01:00
Brian Anderson
40cd1a7c45
rustdoc: Turn off parallel folding until I figure out what's wrong on OS X
2012-02-21 16:15:14 -08:00
Brian Anderson
8b071ebe4c
rustdoc: Make it easy to switch between parallel and sequential folds
2012-02-21 16:14:02 -08:00
Brian Anderson
1ee139ae1f
rustdoc: Convert most passes to parallel folds
2012-02-21 16:14:02 -08:00
Brian Anderson
d4f57620ae
rustdoc: Implement a parallel fold
2012-02-21 16:14:02 -08:00
Brian Anderson
7599d2dd51
rustdoc: Implement astsrv in a dedicated task
...
This allows the srv type to be sendable so we can parallelize
all the rustdoc passes
2012-02-21 16:14:02 -08:00
Brian Anderson
96e3031675
rustdoc: Convert the astsrv constructor to a higher order fn
...
This will allow it to manage the destruction of the astsrv after
I convert it to a task
2012-02-21 16:14:02 -08:00
Brian Anderson
d6095dc6b5
rustdoc: Rename mk_srv_from_str/file to just from_str/file
2012-02-21 16:14:02 -08:00
Brian Anderson
5837e1e809
rustdoc: Remove stray log
2012-02-20 16:57:29 -08:00
Brian Anderson
86e1d4ecbd
rustdoc: astsrv::exec should return sendable types
...
In order to make it parallelizable someday.
2012-02-20 16:56:59 -08:00
Brian Anderson
57be673025
rustdoc: Document reexports
2012-02-20 16:39:35 -08:00
Brian Anderson
affd83ea0e
rustdoc: Find the path to all item types
2012-02-17 17:48:37 -08:00
Brian Anderson
f8f28e29be
rustdoc: Add a test that we can tolerate missing external crates
2012-02-17 17:34:44 -08:00
Brian Anderson
cec1679cf6
rustdoc: Simplify attr pass
2012-02-17 16:52:27 -08:00
Brian Anderson
22de9292c6
rustdoc: Simplify desc pass
2012-02-17 16:00:39 -08:00
Brian Anderson
ba2c2afc98
rustdoc: Simplify desc_to_brief pass
2012-02-17 16:00:39 -08:00
Brian Anderson
37601684c9
rustdoc: Add an item fold
2012-02-17 16:00:39 -08:00
Brian Anderson
5e376b78cf
rustdoc: Refactor itemdoc creation in extract pass
2012-02-17 16:00:39 -08:00
Brian Anderson
e7ccda98d1
rustdoc: Extract itemdoc creation
2012-02-17 16:00:39 -08:00
Brian Anderson
784e2b7298
rustdoc: Extract common item fields into itemdoc
2012-02-17 16:00:39 -08:00
Brian Anderson
d26fc348ef
rustdoc: Add path field to all item docs
2012-02-17 16:00:39 -08:00
Brian Anderson
a5ede9d345
rustdoc: Resolve imports and reexports
2012-02-17 16:00:39 -08:00
Marijn Haverbeke
4b63826050
Replace some explicit fails with 'alt check' invocations
2012-02-15 15:47:42 +01:00
Kevin Atkinson
74b4345a38
Change file_substr to allow for external strings.
2012-02-14 19:37:33 -08:00
Kevin Cantu
c81867474a
(core::str) add find_bytes and export it...
2012-02-13 01:56:58 -08:00
Kevin Cantu
2b4f5136a5
(core::str) rename byte_len -> len_bytes and rename char_len -> len
2012-02-12 15:30:20 -08:00
Marijn Haverbeke
e0fa5cd2ed
Self types for ifaces
...
This allows a 'Name:' to appear in front of an iface declaration's
name, which will cause 'Name' to refer to the self type (with the same
number of type parameters as the iface has) in the method signatures
of the iface. For example:
iface F: functor<A> {
fn fmap<B>(f: fn(A) -> B) -> F<B>;
}
Issue #1718
2012-02-06 09:56:41 +01:00
Brian Anderson
67b1034989
rustdoc: Resolve some FIXMEs
2012-02-05 16:38:18 -08:00
Kevin Atkinson
9090a5c03b
Store info about file "substr".
...
That is when a string that is part of a file needs to be parsed for a
reason, record that the string is a substr of the file rather than
using "<anon>" or "-" as the file name. This will eventually allow
pointing to the right location, for now it just uses a more
meaningful string for the filename.
2012-02-03 20:41:49 -07:00
Brian Anderson
a57c15bf88
rustdoc: Add various sorting passes
2012-02-03 12:00:49 -08:00
Tom Lee
31b0d1b4bd
core: rename str::lteq to str::le
2012-02-03 14:09:44 +01:00
Marijn Haverbeke
3bcd4fe6fa
Start on in-crate monomorphizing
...
Adds a --monomorpize flag to rustc to turn it on. You probably don't
want to use it yet, since it's broken in a whole bunch of ways, but it
successfully monomorphizes simple generic functions called from within
the crate.
Issue #1736
2012-02-03 14:07:35 +01:00
Marijn Haverbeke
43ce38375d
Store item paths in ast_map, get rid of trans::local_ctxt
...
The direct motivation for this was that the monomorphizer needs to be
able to generate sane symbols for random items. The typechecker can
probably also use this in the future to provide more useful error
messages.
2012-02-03 11:34:12 +01:00
Marijn Haverbeke
c1b075d042
Remove experimental GC code
...
It's been sitting unused long enough to have bitrotted completely.
2012-02-03 11:34:12 +01:00
Brian Anderson
2b67de06c8
rustdoc: Add support for type items
2012-02-01 22:41:54 -08:00
Kevin Cantu
ae0d49aa06
Rename str::char_slice -> str::slice
2012-02-01 21:56:53 -08:00
Brian Anderson
f6f3d518e6
rustdoc: Split the pruning of undocumented branches into two passes
...
prune_undoc_details_pass strips arguments and return values that are
undocumented. prune_undoc_items_pass prunes entire items.
2012-01-31 21:54:16 -08:00
Brian Anderson
e8a5d81b24
rustdoc: Add impl docs to demo mod
2012-01-31 20:59:42 -08:00
Brian Anderson
77824cf2ed
rustdoc: Write markdown for impls
2012-01-31 20:54:46 -08:00
Brian Anderson
f9f9388874
rustdoc: Apply string ops to impl docs
2012-01-31 20:42:06 -08:00
Brian Anderson
3f1534ad72
rustdoc: Promote impl descriptions to brief descriptions
2012-01-31 20:31:52 -08:00
Brian Anderson
d7a2837c55
rustdoc: Prune undocumented impls
2012-01-31 20:24:31 -08:00
Brian Anderson
fee9037765
rustdoc: Refactor tests
2012-01-31 19:32:27 -08:00
Brian Anderson
496205c85f
rustdoc: Pull impl docs out of attributes
2012-01-31 19:32:27 -08:00
Brian Anderson
23042a3566
rustdoc: Gather types of impls
2012-01-31 19:32:27 -08:00
Brian Anderson
b7108d71a5
rustdoc: Rename impldoc.for_ty to self_ty
2012-01-31 19:32:27 -08:00
Brian Anderson
c218b65fd8
rustdoc: Prune unexported impls
2012-01-31 19:32:27 -08:00
Brian Anderson
7d6cf37a8d
rustdoc: Extract impl doc nodes from AST
2012-01-31 19:32:27 -08:00
Brian Anderson
acb11f47dc
rustdoc: Add impl doc node
2012-01-31 19:32:27 -08:00
Kevin Cantu
685a434e0a
Rename str::loop_chars to str::all,
...
rename str::loop_chars_sub to str::substr_all, and
propagate this change to std::rope and rustdoc's calls to these
2012-01-31 14:29:11 -08:00
Tim Chevalier
fba35e1a3c
Require alts to be exhaustive
...
middle::check_alt does the work. Lots of changes to add default cases
into alts that were previously inexhaustive.
2012-01-31 10:08:24 -08:00
Brian Anderson
19b9a0d363
rustdoc: Reenable a working test
2012-01-30 21:02:03 -08:00
Brian Anderson
868d9c753c
rustdoc: Add some rustdocs
2012-01-30 21:01:09 -08:00
Brian Anderson
bc450e60c3
rustdoc: Add ifaces to demo module
2012-01-30 20:54:02 -08:00
Brian Anderson
38197d8728
rustdoc: Write markdown for ifaces
2012-01-30 20:53:52 -08:00
Brian Anderson
f4aba18ae7
rustdoc: Apply generic string ops to ifaces
2012-01-30 19:37:32 -08:00
Brian Anderson
fd7bb70d6f
rustdoc: Promote iface descriptions to brief descriptions
2012-01-30 19:37:32 -08:00
Brian Anderson
a64030697b
rustdoc: Prune undocumented ifaces
2012-01-30 19:37:32 -08:00
Brian Anderson
2c495a9bf8
rustdoc: Add iface attribute docs to the doc tree
2012-01-30 19:37:32 -08:00
Brian Anderson
b8a683415c
rustdoc: Add attribute parsing for ifaces and methods
2012-01-30 19:37:32 -08:00
Brian Anderson
dd1564a6d3
rustdoc: Add iface method type info to the doc tree
2012-01-30 19:37:32 -08:00
Brian Anderson
c775798124
rustdoc: Add a test that unexported ifaces are pruned
2012-01-30 19:37:32 -08:00
Brian Anderson
cb4a383922
rustdoc: Extract iface doc nodes from the AST
2012-01-30 19:37:32 -08:00
Brian Anderson
d3aa174846
rustdoc: Add definition of iface docs
2012-01-30 19:37:32 -08:00
Brian Anderson
fe745f1b5d
rustdoc: Use fewer unique pointers
2012-01-30 13:05:25 -08:00
Brian Anderson
361f90e618
rustdoc: Sort the items so modules are printed last
2012-01-29 14:51:09 -08:00
Brian Anderson
07ac2e1043
rustdoc: Add a sorting pass
2012-01-29 14:15:14 -08:00
Brian Anderson
55e69eb458
rustdoc: Extract method to get item names
2012-01-29 13:36:54 -08:00
Brian Anderson
dbe2928c4d
rustdoc: Fix typo in attr_pass
2012-01-29 13:25:38 -08:00
Brian Anderson
f8c93bdbe1
rustdoc: Move mod docs into the item tag
2012-01-29 13:08:18 -08:00
Brian Anderson
9732e0d554
rustdoc: Move fn docs into the item tag
2012-01-29 12:47:06 -08:00
Brian Anderson
5aa6c3a49a
rustdoc: Move const docs into the item tag
2012-01-29 12:46:26 -08:00
Brian Anderson
95e2b1b8f9
rustdoc: Add test that unexported resources are pruned
2012-01-29 11:38:44 -08:00
Brian Anderson
d56a4dd04b
rustdoc: Move enum docs into the item tag
2012-01-29 11:38:44 -08:00
Brian Anderson
40cbc89b6f
rustdoc: Move resource docs into the item tag
2012-01-29 11:38:44 -08:00
Brian Anderson
bfd8a14065
rustdoc: Create an item tag to hold doc for all item types
2012-01-29 11:38:44 -08:00
Brian Anderson
7b67e2d274
rustdoc: Write both crates and mods as header level 1
2012-01-26 23:16:42 -08:00
Brian Anderson
094f91b685
rustdoc: Write markdown for resources
2012-01-26 22:54:20 -08:00
Brian Anderson
ca0aefa8bf
rustdoc: Add resource arg tys to doc tree
2012-01-26 22:54:16 -08:00
Brian Anderson
e51ae23317
rustdoc: Apply generic string-op passes to resources
2012-01-26 22:27:13 -08:00
Brian Anderson
4c188fb82f
rustdoc: Promote resource long descriptions to brief descriptions
2012-01-26 22:19:47 -08:00
Brian Anderson
21fc2a36d8
rustdoc: Build resource arguments as well
2012-01-26 22:14:16 -08:00
Brian Anderson
06ab83de2c
rustdoc: Prune undocumented resources
2012-01-26 22:07:14 -08:00
Brian Anderson
ce7d150493
rustdoc: Add resource attribute docs to the doc tree
2012-01-26 21:39:20 -08:00
Brian Anderson
2efc6004b5
rustdoc: Parse resource doc attributes
2012-01-26 21:20:17 -08:00
Brian Anderson
97a1110c5f
rustdoc: Add resource signatures to doc tree
2012-01-26 20:59:15 -08:00
Brian Anderson
e44467a47f
rustdoc: Add resources to the doc fold
2012-01-26 20:34:16 -08:00
Brian Anderson
23e9f7a1b6
rustdoc: Extract resources from the AST
2012-01-26 20:34:16 -08:00
Brian Anderson
7cf725355a
rustdoc: Add a resource node to the doc tree
2012-01-26 20:34:16 -08:00
Brian Anderson
a06850c8aa
rustdoc: Prune unexported enums and variants
2012-01-26 17:29:55 -08:00
Brian Anderson
28fbb19664
rustc: Switch the --no-core switch to a #[no_core] attribute
2012-01-26 16:43:33 -08:00
Brian Anderson
91ee6afeae
rustdoc: Set up the compiler session properly in prep for running resolve
2012-01-26 11:36:29 -08:00
Brian Anderson
38908581f7
rustdoc: Rename astsrv::ctxt.map to ast_map
2012-01-26 11:05:21 -08:00
Brian Anderson
566a4be1f8
rustdoc: Add some test enums to demo module
2012-01-25 21:04:53 -08:00
Brian Anderson
74e8b11194
rustdoc: Write markdown for enums
2012-01-25 21:04:53 -08:00
Brian Anderson
d6ce20973a
rustdoc: Apply general string ops to enum docs
2012-01-25 21:04:53 -08:00
Brian Anderson
53c6454de5
rustdoc: Extract brief enum descs from long descs
2012-01-25 21:04:53 -08:00
Brian Anderson
1d94f40c6c
rustdoc: Prune undocumented enums
2012-01-25 21:04:53 -08:00
Brian Anderson
95a006ce52
rustdoc: Add enum doc attributes to the doc tree
2012-01-25 21:04:53 -08:00
Brian Anderson
a25bc195e2
rustdoc: Parse variant doc attributes
2012-01-25 21:04:53 -08:00
Brian Anderson
87c3a5c1a3
rustdoc: Extract some common functions from attr_parser
2012-01-25 21:04:52 -08:00
Brian Anderson
259ea4e4b4
rustdoc: Parse enum doc attributes
2012-01-25 21:04:52 -08:00
Brian Anderson
5166cc29e9
rustdoc: Fix a copy&paste bug in attr_parser tests
2012-01-25 21:04:52 -08:00
Brian Anderson
0b9f2a8215
rustdoc: Extract variant signatures
2012-01-25 21:04:49 -08:00
Brian Anderson
1586cce0ea
rustdoc: Add enum folding
2012-01-25 16:56:28 -08:00
Brian Anderson
e946792a78
rustdoc: Extract enum doc nodes from AST nodes
2012-01-25 16:50:32 -08:00
Kevin Atkinson
c5e03e0e59
Keep source file around after parsing.
...
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-25 16:00:47 -07:00
Brian Anderson
61b5cc95d1
rustdoc: Add enums to the doc tree
2012-01-24 23:24:55 -08:00
Brian Anderson
b779277dae
rustdoc: Add a pass to normalize indentation levels in doc comments
2012-01-24 23:24:54 -08:00
Brian Anderson
e869458914
rustdoc: Extract a general apply-function-to-strings pass from trim_pass
2012-01-24 23:24:54 -08:00
Brian Anderson
e7d7f4e4b7
rustdoc: Add a demo module with some test docs
2012-01-24 23:24:54 -08:00
Brian Anderson
45a668c439
rustdoc: Update tests for rustc diagnostic changes
2012-01-24 23:24:31 -08:00
Patrick Walton
9ecd5ee81d
rustc: Split diagnostics into "span diagnostics" and "diagnostics".
...
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-24 21:42:54 -08:00
Brian Anderson
4d096a8c86
rustdoc: Rename gen module to markdown_pass
2012-01-24 18:18:14 -08:00
Brian Anderson
dc69355e99
rustdoc: Generate markdown for failure conditions
2012-01-24 18:17:06 -08:00
Brian Anderson
3310112169
rustdoc: Trim whitespace from failure conditions
2012-01-24 18:10:35 -08:00
Brian Anderson
a66bff6e81
rustdoc: Don't prune functions with documented failure conditions
2012-01-24 18:08:48 -08:00
Brian Anderson
efc067952d
rustdoc: Add fn failure conditions to the doc tree
2012-01-24 18:05:57 -08:00
Brian Anderson
6d8058451b
rustdoc: Parse fn failure conditions
2012-01-24 18:02:33 -08:00
Brian Anderson
fc64aefe0a
rustdoc: Add a pass to trim whitespace from docs
2012-01-24 17:57:23 -08:00
Brian Anderson
cb44fa2a21
rustdoc: Add a pass that extracts brief docs from long docs
...
If the first paragraph of documentation is short then it will be used as the
brief description.
2012-01-24 17:57:23 -08:00
Brian Anderson
93686543e6
rustdoc: Update one of the markdown fn tests
2012-01-24 00:51:54 -08:00
Brian Anderson
c98cfa4f28
rustdoc: Write markdown for consts
2012-01-24 00:51:19 -08:00
Brian Anderson
74ab606e18
rustdoc: Prune undocumented consts
2012-01-24 00:44:47 -08:00
Brian Anderson
e3be8e689d
rustdoc: Some refactoring in attr_pass
2012-01-24 00:38:36 -08:00
Brian Anderson
fbd704e77d
rustdoc: Add const attr docs to doc tree
2012-01-24 00:38:35 -08:00
Brian Anderson
c93c6358cb
rustdoc: Add parsing of const attribute docs
2012-01-24 00:38:35 -08:00
Brian Anderson
e6ed88df68
rustdoc: Add const types to the doc tree
2012-01-24 00:38:35 -08:00
Brian Anderson
d4e9f097b6
rustdoc: Add brief and desc fields to constdoc
2012-01-24 00:38:35 -08:00
Brian Anderson
f9a6b3731f
rustdoc: Add fold_const and fold_constlist to fold
2012-01-24 00:38:35 -08:00
Brian Anderson
d66ac392fe
rustdoc: Prune unexported consts
2012-01-24 00:38:35 -08:00
Brian Anderson
ab86bade97
rustdoc: Build const docs from AST consts
2012-01-24 00:38:35 -08:00
Brian Anderson
6ee7ff50b2
rustdoc: Add consts to the doc tree
2012-01-24 00:38:35 -08:00
Brian Anderson
ab0eed34fd
rustdoc: Prune unexported items from the doc tree
2012-01-23 22:13:34 -08:00
Brian Anderson
ef941998be
rustdoc: Correctly indent multiline fn signatures
2012-01-23 17:58:52 -08:00
Brian Anderson
17ac98ba22
rustdoc: Use the standard markdown syntax for code blocks
2012-01-23 17:58:52 -08:00
Kevin Atkinson
ad21d9c64a
Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str.
...
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-23 17:37:15 -08:00
Brian Anderson
368daf8b5a
Change rustc and rustdoc's #[desc] attribute to #[comment]
...
There are two attributes in use for this same purpose.
2012-01-23 16:25:20 -08:00
Brian Anderson
50d8e9f2a1
Revert "rustdoc: Get the crate brief description from the 'desc' attr"
...
This reverts commit 521e58a3c4
.
Some crates use 'desc', some 'comment' - I want them to just use 'doc'
2012-01-23 16:23:08 -08:00
Brian Anderson
f4c31bda62
rustdoc: Print return value descriptions on same line as type
2012-01-23 16:18:01 -08:00
Brian Anderson
fa3368bc71
rustdoc: Prune undocumented return values
2012-01-23 16:18:01 -08:00
Brian Anderson
a7d3544d10
rustdoc: Don't prune functions with documented arguments
2012-01-23 16:18:01 -08:00
Brian Anderson
5cff7c093e
rustdoc: Prune undocumented fn args
2012-01-23 16:18:01 -08:00