Parent

Class Index [+]

Quicksearch

RKelly::Visitors::Visitor

Constants

TERMINAL_NODES
(Not documented)
SINGLE_VALUE_NODES
(Not documented)
BINARY_NODES
(Not documented)
ARRAY_VALUE_NODES
(Not documented)
NAME_VALUE_NODES
(Not documented)
PREFIX_POSTFIX_NODES
(Not documented)
CONDITIONAL_NODES
(Not documented)
FUNC_CALL_NODES
(Not documented)
FUNC_DECL_NODES
(Not documented)
ALL_NODES
(Not documented)

Public Instance Methods

accept(target) click to toggle source

(Not documented)

# File lib/rkelly/visitors/visitor.rb, line 37
      def accept(target)
        target.accept(self)
      end
visit_BracketAccessorNode(o) click to toggle source

(Not documented)

# File lib/rkelly/visitors/visitor.rb, line 124
      def visit_BracketAccessorNode(o)
        [
          o.value.accept(self),
          o.accessor.accept(self)
        ]
      end
visit_DotAccessorNode(o) click to toggle source

(Not documented)

# File lib/rkelly/visitors/visitor.rb, line 131
      def visit_DotAccessorNode(o)
        o.value.accept(self)
      end
visit_ForInNode(o) click to toggle source

(Not documented)

# File lib/rkelly/visitors/visitor.rb, line 107
      def visit_ForInNode(o)
        [
          o.left.accept(self),
          o.right.accept(self),
          o.value.accept(self)
        ]
      end
visit_ForNode(o) click to toggle source

(Not documented)

# File lib/rkelly/visitors/visitor.rb, line 98
      def visit_ForNode(o)
        [
          o.init ? o.init.accept(self) : nil,
          o.test ? o.test.accept(self) : nil,
          o.counter ? o.counter.accept(self) : nil,
          o.value.accept(self)
        ]
      end
visit_TryNode(o) click to toggle source

(Not documented)

# File lib/rkelly/visitors/visitor.rb, line 115
      def visit_TryNode(o)
        [
          o.value.accept(self),
          o.catch_var ? o.catch_var : nil,
          o.catch_block ? o.catch_block.accept(self) : nil,
          o.finally_block ? o.finally_block.accept(self) : nil
        ]
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.