Sha256: 39f970d1a2f26957ac125c7b98c41d6c14c47b9fa90f7cc39ec13a01a07e1715
Contents?: true
Size: 628 Bytes
Versions: 5
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require_relative 'lox_compound_expr' module Loxxy module Ast class LoxReturnStmt < LoxCompoundExpr # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream. # @param anExpression [Ast::LoxNode] expression to return def initialize(aPosition, anExpression) super(aPosition, [anExpression]) end # Part of the 'visitee' role in Visitor design pattern. # @param visitor [Ast::ASTVisitor] the visitor def accept(visitor) visitor.visit_return_stmt(self) end end # class end # module end # module
Version data entries
5 entries across 5 versions & 1 rubygems