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



10
11
12
13
14
15
# File 'lib/js_regex/second_pass.rb', line 10

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