Skip to content

Commit 402d7ba

Browse files
committed
---
yaml --- r: 7838 b: refs/heads/snap-stage3 c: 3890858 h: refs/heads/master v: v3
1 parent c42d072 commit 402d7ba

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c590bdeea41f5476f42c6a7cb067e162328bdbc2
4+
refs/heads/snap-stage3: 38908581f7d34066ece145bcedcbe8bbddee9bcc
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rustdoc/astsrv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export exec;
1919

2020
type ctxt = {
2121
ast: @ast::crate,
22-
map: ast_map::map
22+
ast_map: ast_map::map
2323
};
2424

2525
type ctxt_handler<T> = fn~(ctxt: ctxt) -> T;
@@ -48,7 +48,7 @@ fn build_ctxt(ast: @ast::crate) -> ctxt {
4848

4949
{
5050
ast: ast,
51-
map: ast_map::map_crate(*ast)
51+
ast_map: ast_map::map_crate(*ast)
5252
}
5353
}
5454

@@ -76,7 +76,7 @@ mod tests {
7676
let source = "fn a() { }";
7777
let srv = mk_srv_from_str(source);
7878
exec(srv) {|ctxt|
79-
assert ctxt.map.size() != 0u
79+
assert ctxt.ast_map.size() != 0u
8080
};
8181
}
8282

branches/snap-stage3/src/rustdoc/attr_pass.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn parse_item_attrs<T>(
6666
id: doc::ast_id,
6767
parse_attrs: fn~([ast::attribute]) -> T) -> T {
6868
astsrv::exec(srv) {|ctxt|
69-
let attrs = alt ctxt.map.get(id) {
69+
let attrs = alt ctxt.ast_map.get(id) {
7070
ast_map::node_item(item) { item.attrs }
7171
};
7272
parse_attrs(attrs)
@@ -263,7 +263,7 @@ fn fold_enum(
263263
desc: attrs.desc,
264264
variants: vec::map(doc.variants) {|variant|
265265
let attrs = astsrv::exec(srv) {|ctxt|
266-
alt ctxt.map.get(doc.id) {
266+
alt ctxt.ast_map.get(doc.id) {
267267
ast_map::node_item(@{
268268
node: ast::item_enum(ast_variants, _), _
269269
}) {

branches/snap-stage3/src/rustdoc/prune_unexported_pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fn is_exported_from_mod(
155155
item_name: str
156156
) -> bool {
157157
astsrv::exec(srv) {|ctxt|
158-
alt ctxt.map.get(mod_id) {
158+
alt ctxt.ast_map.get(mod_id) {
159159
ast_map::node_item(item) {
160160
alt item.node {
161161
ast::item_mod(m) {

branches/snap-stage3/src/rustdoc/tystr_pass.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn fold_fn(
4141

4242
fn get_fn_sig(srv: astsrv::srv, fn_id: doc::ast_id) -> option<str> {
4343
astsrv::exec(srv) {|ctxt|
44-
alt ctxt.map.get(fn_id) {
44+
alt ctxt.ast_map.get(fn_id) {
4545
ast_map::node_item(@{
4646
ident: ident,
4747
node: ast::item_fn(decl, _, blk), _
@@ -79,7 +79,7 @@ fn merge_ret_ty(
7979

8080
fn get_ret_ty(srv: astsrv::srv, fn_id: doc::ast_id) -> option<str> {
8181
astsrv::exec(srv) {|ctxt|
82-
alt ctxt.map.get(fn_id) {
82+
alt ctxt.ast_map.get(fn_id) {
8383
ast_map::node_item(@{
8484
node: ast::item_fn(decl, _, _), _
8585
}) {
@@ -130,7 +130,7 @@ fn merge_arg_tys(
130130

131131
fn get_arg_tys(srv: astsrv::srv, fn_id: doc::ast_id) -> [(str, str)] {
132132
astsrv::exec(srv) {|ctxt|
133-
alt ctxt.map.get(fn_id) {
133+
alt ctxt.ast_map.get(fn_id) {
134134
ast_map::node_item(@{
135135
node: ast::item_fn(decl, _, _), _
136136
}) {
@@ -161,7 +161,7 @@ fn fold_const(
161161

162162
~{
163163
ty: some(astsrv::exec(srv) {|ctxt|
164-
alt ctxt.map.get(doc.id) {
164+
alt ctxt.ast_map.get(doc.id) {
165165
ast_map::node_item(@{
166166
node: ast::item_const(ty, _), _
167167
}) {
@@ -191,7 +191,7 @@ fn fold_enum(
191191
~{
192192
variants: vec::map(doc.variants) {|variant|
193193
let sig = astsrv::exec(srv) {|ctxt|
194-
alt ctxt.map.get(doc.id) {
194+
alt ctxt.ast_map.get(doc.id) {
195195
ast_map::node_item(@{
196196
node: ast::item_enum(ast_variants, _), _
197197
}) {

0 commit comments

Comments
 (0)