Visitor
# File lib/rkelly/visitors/function_visitor.rb, line 5 def initialize(scope) super() @scope_chain = scope end
# File lib/rkelly/visitors/function_visitor.rb, line 14 def visit_FunctionDeclNode(o) if o.value scope_chain[o.value].value = RKelly::JS::Function.new(o.function_body, o.arguments) end end
# File lib/rkelly/visitors/function_visitor.rb, line 10 def visit_SourceElementsNode(o) o.value.each { |x| x.accept(self) } end
[Validate]
Generated with the Darkfish Rdoc Generator 2.