• M
    Keep resolve data in external hash table, rather than embedded defs · 358a1aee
    Marijn Haverbeke 提交于
    One step closer to removing fold and having a single, immutable AST.
    Resolve still uses fold, because it has to detect and transform
    expr_field expressions. If we go through on our plan of moving to a
    different syntax for module dereferencing, the parser can spit out
    expr_field expressions, and resolve can move to walk.
    
    (I am truly sorry for the things I did in typestate_check.rs. I expect
    we'll want to change that to walk as well in the near future, at which
    point it should probably pass around a context record, which could
    hold the def_map.)
    358a1aee
ty.rs 88.4 KB