1 instantiation of CompiledRegexRunner
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\CompiledRegexRunnerFactory.cs (1)
20
new
CompiledRegexRunner
(
10 references to CompiledRegexRunner
System.Text.RegularExpressions (10)
System\Text\RegularExpressions\CompiledRegexRunner.cs (1)
10
internal sealed class CompiledRegexRunner(
CompiledRegexRunner
.ScanDelegate scan, object[]? searchValues, CultureInfo? culture) : RegexRunner
System\Text\RegularExpressions\CompiledRegexRunnerFactory.cs (2)
17
private
CompiledRegexRunner
.ScanDelegate? _scan;
21
_scan ??= _scanMethod.CreateDelegate<
CompiledRegexRunner
.ScanDelegate>(), _searchValues, _culture);
System\Text\RegularExpressions\RegexCompiler.cs (4)
28
private static FieldInfo CultureField => field ??= typeof(
CompiledRegexRunner
).GetField("_culture", BindingFlags.Instance | BindingFlags.NonPublic)!;
29
private static FieldInfo CaseBehaviorField => field ??= typeof(
CompiledRegexRunner
).GetField("_caseBehavior", BindingFlags.Instance | BindingFlags.NonPublic)!;
30
private static FieldInfo SearchValuesArrayField => field ??= typeof(
CompiledRegexRunner
).GetField("_searchValues", BindingFlags.Instance | BindingFlags.NonPublic)!;
6186
/// Adds an entry in <see cref="
CompiledRegexRunner
._searchValues"/> for the given <paramref name="values"/> and emits a load of that initialized value.
System\Text\RegularExpressions\RegexLWCGCompiler.cs (3)
57
DynamicMethod tryFindNextPossibleStartPositionMethod = DefineDynamicMethod($"Regex{regexNum}_TryFindNextPossibleStartingPosition{description}", typeof(bool), typeof(
CompiledRegexRunner
), s_paramTypes);
60
DynamicMethod tryMatchAtCurrentPositionMethod = DefineDynamicMethod($"Regex{regexNum}_TryMatchAtCurrentPosition{description}", typeof(bool), typeof(
CompiledRegexRunner
), s_paramTypes);
63
DynamicMethod scanMethod = DefineDynamicMethod($"Regex{regexNum}_Scan{description}", null, typeof(
CompiledRegexRunner
), [typeof(RegexRunner), typeof(ReadOnlySpan<char>)]);