Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created August 16, 2016 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionoy/99e07fbf5dfbf00854e124827a5dc9a7 to your computer and use it in GitHub Desktop.
Save ionoy/99e07fbf5dfbf00854e124827a5dc9a7 to your computer and use it in GitHub Desktop.
mutable adders;
c.Scope.FindMany(s => true, ref adders);
foreach (adder in adders) {
def parms = adder.ParameterScope
.GetSymbols()
.OfType.[FormalParameterSymbol]()
.ToArray();
when (parms.Length != 1) continue;
when (adderType.IsDescendant(parms[0].Type))
return Some(adder)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment