private void ResolveThisExpresssion(ThisExpression expr) { if (_currentClass == ClassType.None) { Error(expr.Keyword, "cannot use 'this' outside a class."); } ResolveLocal(expr, expr.Keyword); }
private object EvaluateThisExpression(ThisExpression expr) { return(LookupVariable(expr.Keyword, expr)); }