Parent

Class Index [+]

Quicksearch

RKelly::Visitors::FunctionVisitor

Attributes

scope_chain[R]

(Not documented)

Public Class Methods

new(scope) click to toggle source

(Not documented)

# 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

(Not documented)

# 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

(Not documented)

# File lib/rkelly/visitors/function_visitor.rb, line 10
      def visit_SourceElementsNode(o)
        o.value.each { |x| x.accept(self) }
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.