Skip to content

Instantly share code, notes, and snippets.

@showstopper
Created August 12, 2010 13:42
Show Gist options
  • Save showstopper/520981 to your computer and use it in GitHub Desktop.
Save showstopper/520981 to your computer and use it in GitHub Desktop.
if(!absorbed) {
cache each(| other |
if (!absorbed) {
other getGlobalImports() filter (| imp | imp path == module getFullName()) \
each(| imp |
addon := other getTypes() get(name)
if(!addon) {
addon as CoverDecl absorb(cDecl, params)
absorbed = true
}
)
}
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment