1
Fork 0

Reindented things and removed superfluous comments, nothing to see here

This commit is contained in:
Tim Chevalier 2011-04-27 15:39:01 -07:00 committed by Graydon Hoare
parent 844fe20720
commit f61e77e745

View file

@ -367,8 +367,6 @@ fn mk_fn_info_item_obj(&fn_info_map fi, &span sp, ident i, &ast._obj o,
auto all_methods = _vec.clone[@method](o.methods);
plus_option[@method](all_methods, o.dtor);
for (@method m in all_methods) {
/* FIXME: also need to pass in fields so we can say
they're initialized? */
fi.insert(m.node.id, mk_fn_info(m.node.meth));
log(m.node.ident + " has " +
uistr(num_locals(mk_fn_info(m.node.meth))) + " local vars");
@ -1938,7 +1936,7 @@ fn find_pre_post_state_stmt(&fn_info_map fm, &fn_info enclosing,
|| changed;
changed = extend_poststate(stmt_ann.states.poststate,
expr_poststate(*e)) || changed;
/*
log("Summary: stmt = ");
log_stmt(*s);
log("prestate = ");
@ -1949,7 +1947,7 @@ fn find_pre_post_state_stmt(&fn_info_map fm, &fn_info enclosing,
log_bitv(enclosing, stmt_ann.states.poststate);
log("changed =");
log(changed);
*/
ret changed;
}
case (_) { ret false; }
@ -2598,11 +2596,6 @@ fn check_crate(@ast.crate crate) -> @ast.crate {
auto fm = mk_f_to_fn_info(crate);
/* Add a blank ts_ann to every statement (and expression) */
/*
auto fld0 = fold.new_identity_fold[fn_info_map]();
fld0 = @rec(fold_item_fn = bind item_fn_anns(_,_,_,_,_,_,_)
with *fld0);
*/
auto with_anns = annotate_crate(fm, crate);
/* Compute the pre and postcondition for every subexpression */