Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more-precise stx loc for requires; fixes racket#110
Also, avoid generating very many duplicate add-open-require and unused-require annotations. This can happen when forms like combine-in expand to rename sub-forms for every imported item. This should make check-syntax quicker when used both by DrRacket and by things like Racket Mode. Caveats (i.e. please do review before merging): - I'm not 100% sure I understand the usage of `phase-to-requires` so I may have broken something else. - I moved the generation of add-open-require annotations inside the original-enough? test. It seems natural to handle dupe avoidance, for those, at the same time we're handling it, for phase-to-requires. I'm not sure how else to avoid those dupes, without introducing yet another data structure. So please do review. Even if my attempt to fix this, is poor, hopefully I helped by narrowing down the cause (or at least proximate cause) of the problem, and someone else could "fix it better".
- Loading branch information