visitAnonymousExpr method

  1. @override
Object? visitAnonymousExpr(
  1. Anonymous expr
)
override

Implementation

@override
Object? visitAnonymousExpr(Expr.Anonymous expr) {
  var fun = Stmt.Functional(expr.name, expr.params, {}, expr.body);
  return LoxFunction(fun, environment, false);
}