
20 Sep
2010
20 Sep
'10
4:38 p.m.
More hacking leads to more questions! IDs occur in many places in the AST and I'm not sure which ones I should record (by calling g_occ) during my traversal. Should I only gather the ones in HsVar or are there other IDs of interest? As I explained in my first email, I'm looking for occurrences of 1) imported identifiers and 2) top-level identifiers defined in the current module. Should I be recording all IDs I find and the try to filter them out in my particular definition of Gather? I'm also unsure which data types I should traverse, looking for LHsExpr. For example, LPat may contain view patterns that mention imported identifiers. Is there something in the HsExpr tree that I shouldn't traverse? Thanks! -- Johan