91 references to SR
System.Text.RegularExpressions.Generator (91)
DiagnosticDescriptors.cs (24)
15
title: new LocalizableResourceString(nameof(
SR
.InvalidGeneratedRegexAttributeTitle),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
16
messageFormat: new LocalizableResourceString(nameof(
SR
.InvalidGeneratedRegexAttributeMessage),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
24
title: new LocalizableResourceString(nameof(
SR
.InvalidGeneratedRegexAttributeTitle),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
25
messageFormat: new LocalizableResourceString(nameof(
SR
.MultipleGeneratedRegexAttributesMessage),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
33
title: new LocalizableResourceString(nameof(
SR
.InvalidGeneratedRegexAttributeTitle),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
34
messageFormat: new LocalizableResourceString(nameof(
SR
.InvalidRegexArgumentsMessage),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
42
title: new LocalizableResourceString(nameof(
SR
.InvalidGeneratedRegexAttributeTitle),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
43
messageFormat: new LocalizableResourceString(nameof(
SR
.RegexMemberMustHaveValidSignatureMessage),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
51
title: new LocalizableResourceString(nameof(
SR
.LimitedSourceGenerationTitle),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
52
messageFormat: new LocalizableResourceString(nameof(
SR
.LimitedSourceGenerationMessage),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
59
title: new LocalizableResourceString(nameof(
SR
.UseRegexSourceGeneratorTitle),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
60
messageFormat: new LocalizableResourceString(nameof(
SR
.UseRegexSourceGeneratorMessage),
SR
.ResourceManager, typeof(FxResources.System.Text.RegularExpressions.Generator.SR)),
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (4)
1858
SR
.Format(
SR
.MakeException, pattern, currentPos,
SR
.Format(
SR
.UnrecognizedUnicodeProperty, capname)));
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (60)
371
throw MakeException(RegexParseError.InsufficientOpeningParentheses,
SR
.InsufficientOpeningParentheses);
387
throw MakeException(RegexParseError.UnescapedEndingBackslash,
SR
.UnescapedEndingBackslash);
437
MakeException(RegexParseError.NestedQuantifiersNotParenthesized,
SR
.Format(
SR
.NestedQuantifiersNotParenthesized, ch)) :
438
MakeException(RegexParseError.QuantifierAfterNothing,
SR
.Format(
SR
.QuantifierAfterNothing, ch));
517
throw MakeException(RegexParseError.ReversedQuantifierRange,
SR
.ReversedQuantifierRange);
533
throw MakeException(RegexParseError.InsufficientClosingParentheses,
SR
.InsufficientClosingParentheses);
649
throw MakeException(RegexParseError.ExclusionGroupNotLast,
SR
.ExclusionGroupNotLast);
670
throw MakeException(RegexParseError.ShorthandClassInCharacterRange,
SR
.Format(
SR
.ShorthandClassInCharacterRange, ch));
682
throw MakeException(RegexParseError.ShorthandClassInCharacterRange,
SR
.Format(
SR
.ShorthandClassInCharacterRange, ch));
694
throw MakeException(RegexParseError.ShorthandClassInCharacterRange,
SR
.Format(
SR
.ShorthandClassInCharacterRange, ch));
707
throw MakeException(RegexParseError.ShorthandClassInCharacterRange,
SR
.Format(
SR
.ShorthandClassInCharacterRange, ch));
725
throw MakeException(RegexParseError.ReversedCharacterRange,
SR
.ReversedCharacterRange);
769
throw MakeException(RegexParseError.ReversedCharacterRange,
SR
.ReversedCharacterRange);
807
throw MakeException(RegexParseError.UnterminatedBracket,
SR
.UnterminatedBracket);
927
throw MakeException(RegexParseError.CaptureGroupNameInvalid,
SR
.CaptureGroupNameInvalid);
932
throw MakeException(RegexParseError.CaptureGroupOfZero,
SR
.CaptureGroupOfZero);
947
throw MakeException(RegexParseError.CaptureGroupNameInvalid,
SR
.CaptureGroupNameInvalid);
957
throw MakeException(RegexParseError.CaptureGroupNameInvalid,
SR
.CaptureGroupNameInvalid);
973
throw MakeException(RegexParseError.UndefinedNumberedReference,
SR
.Format(
SR
.UndefinedNumberedReference, uncapnum));
979
throw MakeException(RegexParseError.CaptureGroupNameInvalid,
SR
.CaptureGroupNameInvalid);
988
throw MakeException(RegexParseError.UndefinedNamedReference,
SR
.Format(
SR
.UndefinedNamedReference, uncapname));
993
throw MakeException(RegexParseError.CaptureGroupNameInvalid,
SR
.CaptureGroupNameInvalid);
999
throw MakeException(RegexParseError.CaptureGroupNameInvalid,
SR
.CaptureGroupNameInvalid);
1032
throw MakeException(RegexParseError.AlternationHasUndefinedReference,
SR
.Format(
SR
.AlternationHasUndefinedReference, capnum.ToString()));
1035
throw MakeException(RegexParseError.AlternationHasMalformedReference,
SR
.Format(
SR
.AlternationHasMalformedReference, capnum.ToString()));
1057
throw MakeException(RegexParseError.AlternationHasComment,
SR
.AlternationHasComment);
1063
throw MakeException(RegexParseError.AlternationHasNamedCapture,
SR
.AlternationHasNamedCapture);
1104
throw MakeException(RegexParseError.InvalidGroupingConstruct,
SR
.InvalidGroupingConstruct);
1134
throw MakeException(RegexParseError.UnterminatedComment,
SR
.UnterminatedComment);
1252
throw MakeException(RegexParseError.MalformedNamedReference,
SR
.MalformedNamedReference);
1279
throw MakeException(RegexParseError.UndefinedNumberedReference,
SR
.Format(
SR
.UndefinedNumberedReference, capnum.ToString()));
1329
throw MakeException(RegexParseError.UndefinedNumberedReference,
SR
.Format(
SR
.UndefinedNumberedReference, capnum.ToString()));
1345
throw MakeException(RegexParseError.UndefinedNamedReference,
SR
.Format(
SR
.UndefinedNamedReference, capname));
1405
throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange,
SR
.QuantifierOrCaptureGroupOutOfRange);
1543
throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange,
SR
.QuantifierOrCaptureGroupOutOfRange);
1574
throw MakeException(RegexParseError.InsufficientOrInvalidHexDigits,
SR
.InsufficientOrInvalidHexDigits);
1585
throw MakeException(RegexParseError.MissingControlCharacter,
SR
.MissingControlCharacter);
1602
throw MakeException(RegexParseError.UnrecognizedControlCharacter,
SR
.UnrecognizedControlCharacter);
1686
throw MakeException(RegexParseError.UnrecognizedEscape,
SR
.Format(
SR
.UnrecognizedEscape, ch));
1697
throw MakeException(RegexParseError.InvalidUnicodePropertyEscape,
SR
.InvalidUnicodePropertyEscape);
1703
throw MakeException(RegexParseError.MalformedUnicodePropertyEscape,
SR
.MalformedUnicodePropertyEscape);
1721
throw MakeException(RegexParseError.InvalidUnicodePropertyEscape,
SR
.InvalidUnicodePropertyEscape);
2232
throw MakeException(RegexParseError.AlternationHasMalformedCondition,
SR
.AlternationHasMalformedCondition);
2274
throw MakeException(RegexParseError.AlternationHasTooManyConditions,
SR
.AlternationHasTooManyConditions);
2288
new RegexParseException(error, _pos,
SR
.Format(
SR
.MakeException, _pattern, _pos, message));
UpgradeToGeneratedRegexCodeFixer.cs (3)
66
SR
.UseRegexSourceGeneratorTitle,
76
SR
.UseRegexSourceGeneratorTitle,
86
SR
.UseRegexSourceGeneratorTitle,