private FindUsedId ( CallInstruction call, Storage storage ) : Identifier | ||
call | CallInstruction | |
storage | Storage | |
return | Identifier |
private Identifier FindUsedId(CallInstruction call, Storage storage)
{
return call.Uses.Select(u => u.Expression).
OfType<Identifier>().
Where(usedId => usedId.Storage.Equals(storage)).
FirstOrDefault();
}