lib/origen_verilog/processor.rb
# Some of our processors remove a wrapping node from the AST, returning
# a node of type :inline containing the children which should be inlined.
# Here we override the default version of this method to deal with handlers
# that return an inline node in place of a regular node.
Some of our processors remove a wrapping node from the AST, returning
a node of type :inline containing the children which should be inlined.
Here we override the default version of this method to deal with handlers
that return an inline node in place of a regular node.
Some of our processors remove a wrapping node from the AST returning a node of type : inline containing the children which should be inlined . Here we override the default version of this method to deal with handlers that return an inline node in place of a regular node .
def process_all(nodes)
      results = []
      nodes.to_a.each do |node|
        n = process(node)
        if n
          if n.is_a?(Inline)
            results += n
          else
            results << n
          end
        end
      end
      results
    end
def process_all ( nodes ) results = [ ] nodes . to_a . each do | node | n = process ( node ) if n if n . is_a? ( Inline ) results += n else results << n end end end results end
Some of our processors remove a wrapping node from the AST, returning
a node of type :inline containing the children which should be inlined.
Some of our processors remove a wrapping node from the AST returning a node of type : inline containing the children which should be inlined .
nodes
<not_specific>