class Mutest::AST::Regexp::Transformer::Quantifier::ExpressionToAST
Mapper from `Regexp::Expression` to `Parser::AST::Node`
Public Instance Methods
call()
click to toggle source
Transform quantifier into node
@return [Parser::AST::Node]
# File lib/mutest/ast/regexp/transformer/quantifier.rb, line 12 def call ast(expression.min, expression.max) end
Private Instance Methods
type()
click to toggle source
Custom `type` for quantifiers which use `mode` instead of `type`
@return [Symbol]
# File lib/mutest/ast/regexp/transformer/quantifier.rb, line 21 def type :"regexp_#{expression.mode}_#{expression.token}" end