35 references to MaybeNullWhen
Microsoft.CodeAnalysis.Analyzers (35)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (2)
112public bool TryGetValue<TArg>(K key, Func<V, TArg, bool> predicate, TArg arg, [MaybeNullWhen(false)] out V value) 232public bool TryGetValue<TArg>(Func<V, TArg, bool> predicate, TArg arg, [MaybeNullWhen(false)] out V value)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (3)
71public bool TryGetValue(K key, [MaybeNullWhen(returnValue: false)] out V value) 201private bool TryGetValue(int hashCode, K key, [MaybeNullWhen(returnValue: false)] out V value) 235private bool GetFromList(Node? next, K key, [MaybeNullWhen(returnValue: false)] out V value)
src\roslyn\src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
587public static bool TryRemove<TKey, TValue>(ref ImmutableSegmentedDictionary<TKey, TValue> location, TKey key, [MaybeNullWhen(false)] out TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
263public bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
118public bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
225public readonly bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
771public bool Remove(TKey key, [MaybeNullWhen(false)] out TValue value) 853public bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
398public bool TryGetValue(T equalValue, [MaybeNullWhen(false)] out T actualValue)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
57public bool TryGetValue(TKey key, [MaybeNullWhen(returnValue: false)] out TValue value)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
991public bool TryPop([MaybeNullWhen(false)] out T result)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (4)
37static (s, tryParseValue, [MaybeNullWhen(returnValue: false)] out parsedValue) => tryParseValue(s, out parsedValue), 113bool TryGetSpecificOptionValue(string specificOptionKey, string optionKeyPrefix, [MaybeNullWhen(false)] out T specificOptionValue) 124bool TryGetAnySpecificOptionValue(IEnumerable<string> specificOptionKeys, string optionKeyPrefix, [MaybeNullWhen(false)] out T specificOptionValue) 138bool TryGetGeneralOptionValue(string optionKeyPrefix, [MaybeNullWhen(false)] out T generalOptionValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (2)
89static (s, tryParseValue, [MaybeNullWhen(returnValue: false)] out parsedValue) => tryParseValue(s, out parsedValue), 110private bool TryGetOptionValue<T, TArg>(string optionName, OptionKind kind, SyntaxTree? tree, DiagnosticDescriptor? rule, TryParseValue<T, TArg> tryParseValue, TArg arg, T defaultValue, [MaybeNullWhen(false)] out T value)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\ICategorizedAnalyzerConfigOptions.cs (2)
58public delegate bool TryParseValue<T>(string value, [MaybeNullWhen(returnValue: false)] out T parsedValue); 60public delegate bool TryParseValue<T, TArg>(string value, TArg arg, [MaybeNullWhen(returnValue: false)] out T parsedValue);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
237public bool TryGetValue(ISymbol symbol, [MaybeNullWhen(false)] out TValue value) 267private bool TryGetFirstWildcardMatch(ISymbol symbol, [NotNullWhen(true)] out string? firstMatchName, [MaybeNullWhen(false)] out TValue firstMatchValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
182public bool TryGetValue(K key, [MaybeNullWhen(returnValue: false)] out V value) 314private bool TryGetValue(int hashCode, K key, [MaybeNullWhen(returnValue: false)] out V value) 348private bool GetFromList(Node? next, K key, [MaybeNullWhen(returnValue: false)] out V value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (1)
14public static bool TryPop<T>(this Stack<T> stack, [MaybeNullWhen(false)] out T result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer`1.cs (1)
40internal bool TryParseValue(string value, [MaybeNullWhen(false)] out T result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
17public abstract bool TryGetValue([MaybeNullWhen(false)] out T result); 185public override bool TryGetValue([MaybeNullWhen(false)] out T result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CancellableLazy`1.cs (1)
34public bool TryGetValue([MaybeNullWhen(false)] out T value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IBidirectionalMap.cs (2)
14bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value); 15bool TryGetKey(TValue value, [MaybeNullWhen(false)] out TKey key);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
88internal bool TryGetService<TLanguageService>(HostWorkspaceServices.MetadataFilter filter, [MaybeNullWhen(false)] out TLanguageService languageService)