8 references to 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)
5060out int literalLength, [NotNullWhen(true)] out string? indexOfExpr)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
956public static bool IsUnicodeCategoryOfSmallCharCount(string set, [NotNullWhen(true)] out char[]? chars, out bool negated, [NotNullWhen(true)] out string? description)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (3)
1570public unsafe bool TryGetAlternationStartingChars([NotNullWhen(true)] out HashSet<char>? seenChars) 3103public unsafe bool TryGetOrdinalCaseInsensitiveString(int childIndex, int exclusiveChildBound, out int nodesConsumed, [NotNullWhen(true)] out string? caseInsensitiveString, bool consumeZeroWidthNodes = false, bool forPrefixAnalysis = false) 3404internal bool SupportsCompilation([NotNullWhen(false)] out string? reason)
UpgradeToGeneratedRegexAnalyzer.cs (1)
205private static bool ProjectSupportsRegexSourceGenerator(Compilation compilation, [NotNullWhen(true)] out INamedTypeSymbol? regexTypeSymbol)