class RLTK::CG::Contractor

Public Instance Methods

visit(object, at: nil, rcb: false) click to toggle source

Visit an object in the context of this builder. See the Filigree::Visitor’s visit method for more details about the basic behaviour of this method. The special options for this method are:

@param [Object] object The object to visit. @param [BasicBlock] at Where to position the contractor before visiting the object. @param [Boolean] rcb If specified the method will also return the block where the contractor is currently positioned.

@return [Object]

# File lib/rltk/cg/contractor.rb, line 43
def visit(object, at: nil, rcb: false)
        target at if at

        result = wrapped_visit(object)

        if rcb then [result, current_block] else result end
end
Also aliased as: wrapped_visit
wrapped_visit(object, at: nil, rcb: false)

Alias out the RLTK::Visitor.visit method.

Alias for: visit