Reindented things and removed superfluous comments, nothing to see here
This commit is contained in:
committed by
Graydon Hoare
parent
844fe20720
commit
f61e77e745
@@ -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);
|
auto all_methods = _vec.clone[@method](o.methods);
|
||||||
plus_option[@method](all_methods, o.dtor);
|
plus_option[@method](all_methods, o.dtor);
|
||||||
for (@method m in all_methods) {
|
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));
|
fi.insert(m.node.id, mk_fn_info(m.node.meth));
|
||||||
log(m.node.ident + " has " +
|
log(m.node.ident + " has " +
|
||||||
uistr(num_locals(mk_fn_info(m.node.meth))) + " local vars");
|
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;
|
||||||
changed = extend_poststate(stmt_ann.states.poststate,
|
changed = extend_poststate(stmt_ann.states.poststate,
|
||||||
expr_poststate(*e)) || changed;
|
expr_poststate(*e)) || changed;
|
||||||
|
/*
|
||||||
log("Summary: stmt = ");
|
log("Summary: stmt = ");
|
||||||
log_stmt(*s);
|
log_stmt(*s);
|
||||||
log("prestate = ");
|
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_bitv(enclosing, stmt_ann.states.poststate);
|
||||||
log("changed =");
|
log("changed =");
|
||||||
log(changed);
|
log(changed);
|
||||||
|
*/
|
||||||
ret changed;
|
ret changed;
|
||||||
}
|
}
|
||||||
case (_) { ret false; }
|
case (_) { ret false; }
|
||||||
@@ -2598,11 +2596,6 @@ fn check_crate(@ast.crate crate) -> @ast.crate {
|
|||||||
auto fm = mk_f_to_fn_info(crate);
|
auto fm = mk_f_to_fn_info(crate);
|
||||||
|
|
||||||
/* Add a blank ts_ann to every statement (and expression) */
|
/* 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);
|
auto with_anns = annotate_crate(fm, crate);
|
||||||
|
|
||||||
/* Compute the pre and postcondition for every subexpression */
|
/* Compute the pre and postcondition for every subexpression */
|
||||||
|
|||||||
Reference in New Issue
Block a user