Home
last modified time | relevance | path

Searched refs:alternation (Results 1 - 3 of 3) sorted by relevance

/third_party/node/deps/v8/src/regexp/
H A Dregexp-compiler-tonode.cc913 // Compile $ in multiline regexps as an alternation with a positive in RationalizeConsecutiveAtoms()
1650 ChoiceNode* alternation = zone->New<ChoiceNode>(2, zone); in RationalizeConsecutiveAtoms() local
1652 alternation->AddAlternative( in RationalizeConsecutiveAtoms()
1654 alternation->AddAlternative(GuardedAlternative(on_success)); in RationalizeConsecutiveAtoms()
1656 alternation->AddAlternative(GuardedAlternative(on_success)); in RationalizeConsecutiveAtoms()
1657 alternation->AddAlternative( in RationalizeConsecutiveAtoms()
1660 answer = alternation; in RationalizeConsecutiveAtoms()
1662 alternation->set_not_at_start(); in RationalizeConsecutiveAtoms()
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dmod.rs209 /// An alternation of expressions. An alternation always has at least two
212 /// An alternation matches only if at least one of its child expression
488 /// Returns the alternation of the given expressions.
490 /// This flattens the alternation as appropriate.
491 pub fn alternation(mut exprs: Vec<Hir>) -> Hir { in alternation() functions
685 /// alternation of simple literals. This is only
687 /// concatenation of only `Literal`s or an alternation of only `Literal`s.
689 /// For example, `f`, `foo`, `a|b|c`, and `foo|bar|baz` are alternation
H A Dtranslate.rs180 /// This is pushed whenever an alternation is observed. After visiting
181 /// every sub-expression in the alternation, the translator's stack is
377 self.push(HirFrame::Expr(Hir::alternation(exprs))); in visit_post()
1267 Hir::alternation(alts) in hir_alt()

Completed in 10 milliseconds