Skip to content

Instantly share code, notes, and snippets.

@begeric
Last active August 29, 2015 14:09
Show Gist options
  • Save begeric/d01a7073873c5487117d to your computer and use it in GitHub Desktop.
Save begeric/d01a7073873c5487117d to your computer and use it in GitHub Desktop.
val collectDef =
collectIn[Set]{
case t: Defn.Def if(!ignore(t)) => t.getName
}.down feed {defs =>
collect{
case Term.Assign(b: Term.Name, _) if(defs.contains(b)) => warning(b)
}.down
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment