14 instantiations of DiagnosticData
System.Text.RegularExpressions.Generator (14)
RegexGenerator.cs (2)
80
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, method.DiagnosticLocation, e.Message);
100
return (regexMethod, reason, new
DiagnosticData
(DiagnosticDescriptors.LimitedSourceGeneration, regexMethod.DiagnosticLocation), regexMethod.CompilationData);
RegexGenerator.Parser.cs (12)
35
return new
DiagnosticData
(DiagnosticDescriptors.RegexMemberMustHaveValidSignature, GetComparableLocation(context.TargetNode));
65
return new
DiagnosticData
(DiagnosticDescriptors.MultipleGeneratedRegexAttributes, GetComparableLocation(memberSyntax));
71
return new
DiagnosticData
(DiagnosticDescriptors.InvalidGeneratedRegexAttribute, GetComparableLocation(memberSyntax));
77
return new
DiagnosticData
(DiagnosticDescriptors.InvalidGeneratedRegexAttribute, GetComparableLocation(memberSyntax));
109
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, GetComparableLocation(memberSyntax), "(null)");
121
return new
DiagnosticData
(DiagnosticDescriptors.RegexMemberMustHaveValidSignature, GetComparableLocation(memberSyntax));
135
return new
DiagnosticData
(DiagnosticDescriptors.RegexMemberMustHaveValidSignature, GetComparableLocation(memberSyntax));
157
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, GetComparableLocation(memberSyntax), e.Message);
165
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, GetComparableLocation(memberSyntax), "cultureName");
174
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, GetComparableLocation(memberSyntax), "cultureName");
192
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, GetComparableLocation(memberSyntax), "options");
198
return new
DiagnosticData
(DiagnosticDescriptors.InvalidRegexArguments, GetComparableLocation(memberSyntax), "matchTimeout");
5 references to DiagnosticData
System.Text.RegularExpressions.Generator (5)
RegexGenerator.cs (4)
92
Debug.Assert(state is
DiagnosticData
);
128
if (result is
DiagnosticData
d)
175
if (result is ValueTuple<RegexMethod, string,
DiagnosticData
, CompilationData> limitedSupportResult)
237
if (result is ValueTuple<RegexMethod, string,
DiagnosticData
, CompilationData> limitedSupportResult)
RegexGenerator.Parser.cs (1)
23
/// Returns null if nothing to do, <see cref="
DiagnosticData
"/> if there's an error to report,