1 instantiation of RegexMethod
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
80return new RegexMethod(method.DeclaringType, method.IsProperty, method.DiagnosticLocation, method.MemberName, method.Modifiers, method.NullableRegex, method.Pattern, method.Options, method.MatchTimeout, regexTree, analysis, method.CompilationData);
21 references to RegexMethod
System.Text.RegularExpressions.Generator (21)
RegexGenerator.cs (9)
94if (state is not RegexMethod regexMethod) 169var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 178RegexMethod? regexMethod = null; 179if (result is ValueTuple<RegexMethod, string, DiagnosticData, CompilationData> limitedSupportResult) 184else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl) 200if (emittedExpressions.TryGetValue(key, out RegexMethod? implementation)) 241if (result is ValueTuple<RegexMethod, string, DiagnosticData, CompilationData> limitedSupportResult) 249else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl) 300private static bool SupportsCodeGeneration(RegexMethod method, LanguageVersion languageVersion, [NotNullWhen(false)] out string? reason)
RegexGenerator.Emitter.cs (12)
60private static void EmitRegexPartialMethod(RegexMethod regexMethod, IndentedTextWriter writer) 117IndentedTextWriter writer, RegexMethod rm, string reason, LanguageVersion langVer) 151IndentedTextWriter writer, RegexMethod rm, string runnerFactoryImplementation, bool allowUnsafe) 231private static void EmitRegexDerivedTypeRunnerFactory(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 751private static (bool NeedsTryFind, bool NeedsTryMatch) EmitScan(IndentedTextWriter writer, RegexMethod rm) 837private static void EmitTryFindNextPossibleStartingPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 1572private static void EmitTryMatchAtCurrentPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 5035private static void EmitTimeoutCheckIfNeeded(IndentedTextWriter writer, RegexMethod rm, bool appendNewLineIfTimeoutEmitted = true) 5591private static string DescribeNode(RegexNode node, RegexMethod rm) 5634private static string DescribeCapture(int capNum, RegexMethod rm) 5765private static void DescribeExpressionAsXmlComment(TextWriter writer, RegexNode node, RegexMethod rm, int depth = 0) 5835private static string DescribeLoop(RegexNode node, RegexMethod rm)