18 lines
297 B
Ruby
18 lines
297 B
Ruby
module Mutant
|
|
# Mixin for node helpers
|
|
module NodeHelpers
|
|
|
|
# Build node
|
|
#
|
|
# @param [Symbol] type
|
|
#
|
|
# @return [Parser::AST::Node]
|
|
#
|
|
# @api private
|
|
#
|
|
def s(type, *children)
|
|
Parser::AST::Node.new(type, children)
|
|
end
|
|
|
|
end # NodeHelpers
|
|
end # Mutant
|