class · System.Text

RegexNode

public class System.Text.RegexNode : System.Any

A node of a parsed pattern. Kind: 0 the end of the pattern, 1 a literal unit, 2 a class (Table), 3 ., 4 a sequence, 5 alternatives, 6 a group's start, 7 its end, 8 a repeat, 9 the end of one iteration of a repeat, 10 ^, 11 $, 12 \b, 13 \B. Once the pattern is parsed, every node knows the node after it (Next), so matching walks fixed links and allocates nothing.

Kind
class
Namespace
System.Text
Assembly
System.Core
Access
public, final
Source file
Regex.ant

Inheritance

Base classes
Any RegexNode

Constructors

constructor RegexNode(kind: i32)
#

Fields

field Kind: i32
#
field Literal: u8
#
field Table: u8[]
#
field Child: System.Text.RegexNode
#
field Repeat: System.Text.RegexNode
#
field Next: System.Text.RegexNode
#
field Index: i32
#
field Min: i32
#
field Max: i32
#
field Count: i32
#
field Lazy: bool
#
field Units: bool
#

A repeat of one literal, class or .: matched by a loop over the units (no iterations).

Inherited members (5)

Source

RegexNode as Larva HIR, decompiled from its Larva HIR.

System.Text.RegexNode.hir
// A node of a parsed pattern. Kind: 0 the end of the pattern, 1 a literal unit, 2 a class (Table), 3 `.`, 4 a
// sequence, 5 alternatives, 6 a group's start, 7 its end, 8 a repeat, 9 the end of one iteration of a repeat, 10 `^`,
// 11 `$`, 12 `\b`, 13 `\B`. Once the pattern is parsed, every node knows the node after it (Next), so matching walks
// fixed links and allocates nothing.
public class System.Text.RegexNode : System.Any
{
    field Kind: i32
    field Literal: u8
    field Table: u8[]
    field Children: System.List<System.Text.RegexNode>
    field Child: System.Text.RegexNode
    field Repeat: System.Text.RegexNode
    field Next: System.Text.RegexNode
    field Index: i32
    field Min: i32
    field Max: i32
    field Count: i32
    field Lazy: bool
    // A repeat of one literal, class or `.`: matched by a loop over the units (no iterations).
    field Units: bool
    constructor RegexNode(kind: i32)
}
Esc