8 instantiations of NotNullWhen
System.Text.RegularExpressions.Generator (8)
RegexGenerator.cs (1)
339private static bool SupportsCodeGeneration(RegexMethod method, LanguageVersion languageVersion, [NotNullWhen(false)] out string? reason)
RegexGenerator.Emitter.cs (1)
5012out int literalLength, [NotNullWhen(true)] out string? indexOfExpr)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
890public static bool IsUnicodeCategoryOfSmallCharCount(string set, [NotNullWhen(true)] out char[]? chars, out bool negated, [NotNullWhen(true)] out string? description)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (3)
1512public bool TryGetAlternationStartingChars([NotNullWhen(true)] out HashSet<char>? seenChars) 2966public bool TryGetOrdinalCaseInsensitiveString(int childIndex, int exclusiveChildBound, out int nodesConsumed, [NotNullWhen(true)] out string? caseInsensitiveString, bool consumeZeroWidthNodes = false, bool forPrefixAnalysis = false) 3259internal bool SupportsCompilation([NotNullWhen(false)] out string? reason)
UpgradeToGeneratedRegexAnalyzer.cs (1)
271private static bool ProjectSupportsRegexSourceGenerator(Compilation compilation, [NotNullWhen(true)] out INamedTypeSymbol? regexTypeSymbol)