module Unparser::NodeHelpers

def n(type, children = [])

Other tags:
    Api: - private

Parameters:
  • children (Array) --
  • type (Symbol) --

Returns:
  • (Parser::AST::Node) -
def n(type, children = [])
  Parser::AST::Node.new(type, children)
end

def n?(type, node)

def n?(type, node)
  node.type.equal?(type)
end

def n_flipflop?(node)

def n_flipflop?(node)
  n_iflipflop?(node) || n_eflipflop?(node)
end

def n_range?(node)

def n_range?(node)
  n_irange?(node) || n_erange?(node)
end

def s(type, *children)

Other tags:
    Api: - private

Returns:
  • (Parser::AST::Node) -

Parameters:
  • children (Parser::AST::Node) --
  • type (Symbol) --
def s(type, *children)
  Parser::AST::Node.new(type, children)
end