Skip to content

Commit

Permalink
Port lint.rs from oldvisit to <V:Visit> trait API. Less mechanical port.
Browse files Browse the repository at this point in the history
That is, there was lots more hacking than the other more-mechanical
ports Felix did.

There's also a strange pattern that I hacked in to accommodate the
Outer/Inner traversal structure of the existing code (which was
previously encoding this by untying the Y-combinator style knot of the
vtable, and then retying it but superimposing new methods that "stop
at items").  I hope either I or someone else can come back in the
future and replace this ugliness with something more natural.

Added boilerplate macro; all the OuterLint definitions are the same
(but must be abstracted over implementing struct, thus the macro).

Revised lint.rs use declarations to make ast references explicit.
Also removed unused imports.
  • Loading branch information
pnkfelix committed Aug 15, 2013
1 parent f93864c commit da902b2
Showing 1 changed file with 432 additions and 191 deletions.
Loading

0 comments on commit da902b2

Please sign in to comment.