visitThisExpr method
Implementation
@override
void visitThisExpr(Expr.This expr) {
if (currentClassType == ClassType.NONE) {
error1(expr.keyword, 'Can not use \'this\' outside of a class.');
return;
}
resolveLocal(expr, expr.keyword);
return;
}