public virtual object Resolve(string name)
{
var scope = FindScopeFor(name);
if (scope == null)
{
bool success;
var res = InterpretationContext.Instance.Interpreter
.TryInvokeMemberMissing(this, name, out success);
if (success)
return res;
throw ErrorFactory.CreateNotDefinedError(name);
}
return scope.Members[name];
}