visitPrintStmt method

  1. @override
void visitPrintStmt(
  1. Print stmt
)
override

Implementation

@override
void visitPrintStmt(Stmt.Print stmt) {
  Object? value = evaluate(stmt.expression);
  print(stringify(value));
  return;
}