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