Parent

Class/Module Index [+]

Quicksearch

RKelly::Visitors::FunctionVisitor

Attributes

scope_chain[R]

Public Class Methods

new(scope) click to toggle source
# File lib/rkelly/visitors/function_visitor.rb, line 5
def initialize(scope)
  super()
  @scope_chain = scope
end

Public Instance Methods

visit_FunctionDeclNode(o) click to toggle source
# 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
visit_SourceElementsNode(o) click to toggle source
# 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.