libsyntax: minor cleanup
This commit is contained in:
parent
44f5537abf
commit
297c6e11bb
@ -566,29 +566,30 @@ pub type simple_visitor = @SimpleVisitor;
|
|||||||
pub fn simple_ignore_ty(_t: @Ty) {}
|
pub fn simple_ignore_ty(_t: @Ty) {}
|
||||||
|
|
||||||
pub fn default_simple_visitor() -> @SimpleVisitor {
|
pub fn default_simple_visitor() -> @SimpleVisitor {
|
||||||
return @SimpleVisitor {visit_mod: |_m: _mod, _sp: span, _id: node_id| { },
|
@SimpleVisitor {
|
||||||
visit_view_item: |_vi: @view_item| { },
|
visit_mod: |_m, _sp, _id| { },
|
||||||
visit_foreign_item: |_ni: @foreign_item| { },
|
visit_view_item: |_vi| { },
|
||||||
visit_item: |_i: @item| { },
|
visit_foreign_item: |_ni| { },
|
||||||
visit_local: |_l: @local| { },
|
visit_item: |_i| { },
|
||||||
visit_block: |_b: ast::blk| { },
|
visit_local: |_l| { },
|
||||||
visit_stmt: |_s: @stmt| { },
|
visit_block: |_b| { },
|
||||||
visit_arm: |_a: arm| { },
|
visit_stmt: |_s| { },
|
||||||
visit_pat: |_p: @pat| { },
|
visit_arm: |_a| { },
|
||||||
visit_decl: |_d: @decl| { },
|
visit_pat: |_p| { },
|
||||||
visit_expr: |_e: @expr| { },
|
visit_decl: |_d| { },
|
||||||
visit_expr_post: |_e: @expr| { },
|
visit_expr: |_e| { },
|
||||||
visit_ty: simple_ignore_ty,
|
visit_expr_post: |_e| { },
|
||||||
visit_ty_params: fn@(_ps: ~[ty_param]) {},
|
visit_ty: simple_ignore_ty,
|
||||||
visit_fn: fn@(_fk: fn_kind, _d: fn_decl, _b: blk, _sp: span,
|
visit_ty_params: fn@(_ps: ~[ty_param]) { },
|
||||||
_id: node_id) { },
|
visit_fn: fn@(_fk: fn_kind, _d: fn_decl, _b: blk, _sp: span,
|
||||||
visit_ty_method: fn@(_m: ty_method) { },
|
_id: node_id) { },
|
||||||
visit_trait_method: fn@(_m: trait_method) { },
|
visit_ty_method: fn@(_m: ty_method) { },
|
||||||
visit_struct_def: fn@(_sd: @struct_def, _nm: ident,
|
visit_trait_method: fn@(_m: trait_method) { },
|
||||||
_tps: ~[ty_param], _id: node_id) { },
|
visit_struct_def: fn@(_sd: @struct_def, _nm: ident,
|
||||||
visit_struct_field: fn@(_f: @struct_field) { },
|
_tps: ~[ty_param], _id: node_id) { },
|
||||||
visit_struct_method: fn@(_m: @method) { }
|
visit_struct_field: fn@(_f: @struct_field) { },
|
||||||
};
|
visit_struct_method: fn@(_m: @method) { }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn mk_simple_visitor(v: simple_visitor) -> vt<()> {
|
pub fn mk_simple_visitor(v: simple_visitor) -> vt<()> {
|
||||||
|
Loading…
Reference in New Issue
Block a user