Module: JsRegex::SecondPass

Defined in:
lib/js_regex/second_pass.rb

Overview

After conversion of a full Regexp::Expression tree, this checks for Node instances that need further processing.

Class Method Summary collapse

Class Method Details

.call(tree) ⇒ Object



8
9
10
11
12
# File 'lib/js_regex/second_pass.rb', line 8

def call(tree)
  substitute_root_level_keep_mark(tree)
  alternate_conditional_permutations(tree)
  tree
end