419 instantiations of NotNullWhen
Microsoft.CodeAnalysis.ResxSourceGenerator (419)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
24public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
379public static bool IsAbsolute([NotNullWhen(true)] string? path) 788public static bool IsValidFilePath([NotNullWhen(true)] string? fullPath)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
31internal static bool IsFileName([NotNullWhen(returnValue: true)] string? path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
14public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 18public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (7)
89internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 97internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 135[NotNullWhen(returnValue: true)] out string? result) 150[NotNullWhen(returnValue: true)] out string? result) 162internal static bool HasAttributeSuffix([NotNullWhen(true)] this string? name, bool isCaseSensitive) 249[NotNullWhen(returnValue: true)] out byte[]? result, 250[NotNullWhen(returnValue: false)] out string? error)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (1)
91public static bool IsValidIdentifier([NotNullWhen(returnValue: true)] string? name)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
61private static bool IsGeneratedCodeFile([NotNullWhen(returnValue: true)] string? filePath)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
345[NotNullWhen(true)] IEnumerable<TSource>? source, 347[NotNullWhen(true)] out ArrayBuilder<TResult>? builder)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\CompilationExtensions.cs (1)
31internal static bool TryGetOrCreateTypeByMetadataName(this Compilation compilation, string fullTypeName, [NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) =>
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (15)
89public static bool IsImplementationOfInterfaceMethod(this IMethodSymbol method, ITypeSymbol? typeArgument, [NotNullWhen(returnValue: true)] INamedTypeSymbol? interfaceType, string interfaceMethodName) 119public static bool IsDisposeImplementation([NotNullWhen(returnValue: true)] this IMethodSymbol? method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? iDisposable) 141public static bool IsAsyncDisposeImplementation([NotNullWhen(returnValue: true)] this IMethodSymbol? method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? iAsyncDisposable, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTaskType) 223private static bool HasOverriddenDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? task) 236private static bool HasVirtualOrOverrideDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTask) 311public static bool IsSerializationConstructor([NotNullWhen(returnValue: true)] this IMethodSymbol? method, INamedTypeSymbol? serializationInfoType, INamedTypeSymbol? streamingContextType) 317public static bool IsGetObjectData([NotNullWhen(returnValue: true)] this IMethodSymbol? method, INamedTypeSymbol? serializationInfoType, INamedTypeSymbol? streamingContextType) 385public static bool IsTaskFromResultMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? taskType) 394public static bool IsTaskConfigureAwaitMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? genericTaskType) 406public static bool IsAsyncDisposableConfigureAwaitMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? asyncDisposableType, [NotNullWhen(returnValue: true)] INamedTypeSymbol? taskAsyncEnumerableExtensions) 483public static bool IsLockMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? systemThreadingMonitor)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
276public static bool TryGetEnclosingControlFlowGraph(this IOperation operation, [NotNullWhen(returnValue: true)] out ControlFlowGraph? cfg) 384public static bool IsWithinLambdaOrLocalFunction(this IOperation operation, [NotNullWhen(true)] out IOperation? containingLambdaOrLocalFunctionOperation) 409[NotNullWhen(returnValue: true)] out ITupleOperation? parentTupleOperation, 410[NotNullWhen(returnValue: true)] out IOperation? elementOfParentTupleContainingTuple) 493[NotNullWhen(true)] out IArgumentOperation? result)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (14)
23public static bool IsDefaultConstructor([NotNullWhen(returnValue: true)] this ISymbol? symbol) 38public static bool IsIndexer([NotNullWhen(returnValue: true)] this ISymbol? symbol) 43public static bool IsPropertyWithBackingField([NotNullWhen(returnValue: true)] this ISymbol? symbol, [NotNullWhen(true)] out IFieldSymbol? backingField) 168public static bool IsImplementationOfInterfaceMember(this ISymbol symbol, [NotNullWhen(returnValue: true)] ISymbol? interfaceMember) 177public static bool IsOverrideOrImplementationOfInterfaceMember(this ISymbol symbol, [NotNullWhen(returnValue: true)] ISymbol? interfaceMember) 196public static bool IsImplementationOfAnyExplicitInterfaceMember([NotNullWhen(returnValue: true)] this ISymbol? symbol) 228public static bool IsReadOnlyFieldOrProperty([NotNullWhen(returnValue: true)] this ISymbol? symbol) 240public static AttributeData? GetAttribute(this ISymbol symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeType) 292public static bool HasDerivedTypeAttribute(this ITypeSymbol symbol, [NotNullWhen(returnValue: true)] INamedTypeSymbol? attribute) 331public static bool HasDerivedMethodAttribute(this IMethodSymbol symbol, [NotNullWhen(returnValue: true)] INamedTypeSymbol? attribute) 356public static bool IsLambdaOrLocalFunction([NotNullWhen(returnValue: true)] this ISymbol? symbol) 359public static bool IsConst([NotNullWhen(returnValue: true)] this ISymbol? symbol) 371public static bool IsReadOnly([NotNullWhen(returnValue: true)] this ISymbol? symbol)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (8)
39public static bool Inherits([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? possibleBase) 64public static bool DerivesFrom([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol, [NotNullWhen(returnValue: true)] ITypeSymbol? candidateBaseType, bool baseTypesOnly = false, bool checkTypeParameterConstraints = true) 251public static bool CanHoldNullValue([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 256public static bool IsNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 259public static bool IsReferenceTypeOrNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 262public static bool IsNullableOfBoolean([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
29protected abstract bool TryGetOptionValue(string optionKeyPrefix, string? optionKeySuffix, string optionName, [NotNullWhen(returnValue: true)] out string? valueString);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
29private static bool TryGetSyntaxTreeForOption(ISymbol symbol, [NotNullWhen(returnValue: true)] out SyntaxTree? tree)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
267private bool TryGetFirstWildcardMatch(ISymbol symbol, [NotNullWhen(true)] out string? firstMatchName, [MaybeNullWhen(false)] out TValue firstMatchValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
63protected override bool TryGetOptionValue(string optionKeyPrefix, string? optionKeySuffix, string optionName, [NotNullWhen(returnValue: true)] out string? valueString)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (3)
94[NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) 106[NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) 203internal bool IsTaskOfType([NotNullWhen(returnValue: true)] ITypeSymbol? typeSymbol, Func<ITypeSymbol, bool> typeArgumentPredicate)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (4)
17public static bool TryParseStringEditorConfigCodeStyleOption(string arg, CodeStyleOption2<string> defaultValue, [NotNullWhen(true)] out CodeStyleOption2<string>? option) 53string arg, [NotNullWhen(true)] out string? value) 64string arg, NotificationOption2 defaultNotification, [NotNullWhen(true)] out string? value, [NotNullWhen(true)] out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (5)
23bool TryGetRoot(TIntervalTree tree, [NotNullWhen(true)] out TNode? root); 24bool TryGetLeftNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? leftNode); 25bool TryGetRightNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? rightNode); 115[NotNullWhen(true)] out TNode? right) where TIntrospector : struct, IIntervalIntrospector<T> 143[NotNullWhen(true)] out TNode? left) where TIntrospector : struct, IIntervalIntrospector<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
158public bool TryGetRoot(MutableIntervalTree<T> tree, [NotNullWhen(true)] out Node? root) 164public bool TryGetLeftNode(MutableIntervalTree<T> tree, Node node, [NotNullWhen(true)] out Node? leftNode) 170public bool TryGetRightNode(MutableIntervalTree<T> tree, Node node, [NotNullWhen(true)] out Node? rightNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (2)
35public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (3)
37[NotNullWhen(true)] ITypeSymbol? type) 44[NotNullWhen(true)] ITypeSymbol? type, 45[NotNullWhen(true)] out ITypeSymbol? elementType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\KnownTypes.cs (1)
22public bool IsTaskLike([NotNullWhen(true)] ITypeSymbol? returnType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (1)
87public static bool TryRemoveFirst<T, TArg>(this IList<T> list, Func<T, TArg, bool> selector, TArg arg, [NotNullWhen(true)] out T? removedItem)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
259public static bool IsInLeftOfDeconstructionAssignment(this IOperation operation, [NotNullWhen(true)] out IDeconstructionAssignmentOperation? deconstructionAssignment) 357public static bool HasAnyOperationDescendant(this IOperation operationBlock, Func<IOperation, bool> predicate, [NotNullWhen(true)] out IOperation? foundOperation) 399public static bool IsSingleThrowNotImplementedOperation([NotNullWhen(true)] this IOperation? firstBlock)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
180[NotNullWhen(true)] out string? parameterName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
129public static bool CheckParent<T>([NotNullWhen(returnValue: true)] this SyntaxNode? node, Func<T, bool> valueChecker) where T : SyntaxNode
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
14public static bool AsNode(this SyntaxNodeOrToken nodeOrToken, [NotNullWhen(true)] out SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
18public static bool OverlapsHiddenPosition([NotNullWhen(returnValue: true)] this SyntaxTree? tree, TextSpan span, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
222[NotNullWhen(true)] out IList<TokenData>? tokenData) 247[NotNullWhen(true)] out IList<TokenData>? tokenData,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Changes.cs (1)
36public readonly bool TryGet(int key, [NotNullWhen(true)] out TriviaData? triviaInfo)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
138protected bool IsNullOrWhitespace([NotNullWhen(true)] string? text)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
18[NotNullWhen(true)] out NamingRule? namingRule,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
21[NotNullWhen(true)] out SymbolSpecification? symbolSpec)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
26public override bool Equals([NotNullWhen(true)] object? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (3)
13public abstract bool IsScopeBlock([NotNullWhen(true)] SyntaxNode? node); 14public abstract bool IsExecutableBlock([NotNullWhen(true)] SyntaxNode? node); 20public abstract bool IsStatementContainer([NotNullWhen(true)] SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (3)
22bool IsScopeBlock([NotNullWhen(true)] SyntaxNode? node); 37bool IsExecutableBlock([NotNullWhen(true)] SyntaxNode? node); 46bool IsStatementContainer([NotNullWhen(true)] SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (9)
19public abstract bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 20public abstract bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration); 21public abstract bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter); 22public abstract bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method); 23public abstract bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction); 24public abstract bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration); 25public abstract bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement); 26public abstract bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement); 27public abstract bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\IHeaderFacts.cs (9)
16bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 18bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration); 19bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter); 20bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method); 21bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction); 22bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration); 23bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement); 24bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement); 25bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\IHeaderFactsExtensions.cs (1)
14public static bool IsOnTypeHeader(this IHeaderFacts headerFacts, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\RefactoringHelpers\AbstractRefactoringHelpers.cs (10)
25public abstract bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 586public bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 589public bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration) 592public bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter) 595public bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method) 598public bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction) 601public bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration) 604public bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement) 607public bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement) 610public bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\RefactoringHelpers\IRefactoringHelpers.cs (1)
23bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (10)
52bool IsWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 59bool IsOnlyWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 60bool IsInOutContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 61bool IsInRefContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 62bool IsInInContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 64bool CanReplaceWithRValue(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? expression, CancellationToken cancellationToken); 73bool TryGetSpeculativeSemanticModel(SemanticModel oldSemanticModel, SyntaxNode oldNode, SyntaxNode newNode, [NotNullWhen(true)] out SemanticModel? speculativeModel); 101bool IsInsideNameOfExpression(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 108bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [NotNullWhen(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken); 123bool TryGetPrimaryConstructor(INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol? primaryConstructor);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
111private static bool IsUserDefinedOperator([NotNullWhen(returnValue: true)] ISymbol? symbol) 118private static bool IsFloatingPoint([NotNullWhen(returnValue: true)] ITypeSymbol? type)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (76)
122bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node); 123bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node, PredefinedType type); 173bool IsUsingOrExternOrImport([NotNullWhen(true)] SyntaxNode? node); 174bool IsGlobalAssemblyAttribute([NotNullWhen(true)] SyntaxNode? node); 175bool IsGlobalModuleAttribute([NotNullWhen(true)] SyntaxNode? node); 176bool IsDeclaration([NotNullWhen(true)] SyntaxNode? node); 178bool IsUsingAliasDirective([NotNullWhen(true)] SyntaxNode? node); 192bool IsEntirelyWithinStringOrCharOrNumericLiteral([NotNullWhen(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken); 196bool TryGetExternalSourceInfo([NotNullWhen(true)] SyntaxNode? directive, out ExternalSourceInfo info); 198bool IsDeclarationExpression([NotNullWhen(true)] SyntaxNode? node); 200bool IsConversionExpression([NotNullWhen(true)] SyntaxNode? node); 201bool IsCastExpression([NotNullWhen(true)] SyntaxNode? node); 203bool IsExpressionOfForeach([NotNullWhen(true)] SyntaxNode? node); 209bool IsVerbatimInterpolatedStringExpression([NotNullWhen(true)] SyntaxNode? node); 212bool IsLeftSideOfAssignment([NotNullWhen(true)] SyntaxNode? node); 214bool IsAnyAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 215bool IsSimpleAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 220bool IsLeftSideOfAnyAssignment([NotNullWhen(true)] SyntaxNode? node); 222bool IsLeftSideOfCompoundAssignment([NotNullWhen(true)] SyntaxNode? node); 225bool IsInferredAnonymousObjectMemberDeclarator([NotNullWhen(true)] SyntaxNode? node); 226bool IsOperandOfIncrementExpression([NotNullWhen(true)] SyntaxNode? node); 227bool IsOperandOfIncrementOrDecrementExpression([NotNullWhen(true)] SyntaxNode? node); 229bool IsLeftSideOfDot([NotNullWhen(true)] SyntaxNode? node); 246bool IsLeftSideOfExplicitInterfaceSpecifier([NotNullWhen(true)] SyntaxNode? node); 248bool IsNameOfSimpleMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 249bool IsNameOfAnyMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 250bool IsNameOfMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 283bool IsPointerMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 285bool IsNamedArgument([NotNullWhen(true)] SyntaxNode? node); 286bool IsNameOfNamedArgument([NotNullWhen(true)] SyntaxNode? node); 288bool IsParameterList([NotNullWhen(true)] SyntaxNode? node); 298bool IsElementBindingExpression([NotNullWhen(true)] SyntaxNode? node); 299bool IsMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 300bool IsPostfixUnaryExpression([NotNullWhen(true)] SyntaxNode? node); 311bool IsSimpleArgument([NotNullWhen(true)] SyntaxNode? node); 312bool IsArgument([NotNullWhen(true)] SyntaxNode? node); 313bool IsAttributeArgument([NotNullWhen(true)] SyntaxNode? node); 327bool IsUsingDirectiveName([NotNullWhen(true)] SyntaxNode? node); 333bool IsAttributeNamedArgumentIdentifier([NotNullWhen(true)] SyntaxNode? node); 334bool IsMemberInitializerNamedAssignmentIdentifier([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? initializedInstance); 335bool IsAnonymousObjectMemberDeclaratorNameIdentifier([NotNullWhen(true)] SyntaxNode? node); 336bool IsAnyInitializerExpression([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? creationExpression); 338bool IsDirective([NotNullWhen(true)] SyntaxNode? node); 339bool IsStatement([NotNullWhen(true)] SyntaxNode? node); 340bool IsExecutableStatement([NotNullWhen(true)] SyntaxNode? node); 341bool IsGlobalStatement([NotNullWhen(true)] SyntaxNode? node); 344bool IsDeconstructionAssignment([NotNullWhen(true)] SyntaxNode? node); 345bool IsDeconstructionForEachStatement([NotNullWhen(true)] SyntaxNode? node); 360bool IsMethodBody([NotNullWhen(true)] SyntaxNode? node); 372bool IsElementAccessExpression([NotNullWhen(true)] SyntaxNode? node); 393bool IsInNamespaceOrTypeContext([NotNullWhen(true)] SyntaxNode? node); 395bool IsBaseTypeList([NotNullWhen(true)] SyntaxNode? node); 397bool IsInConstantContext([NotNullWhen(true)] SyntaxNode? node); 399bool IsMethodLevelMember([NotNullWhen(true)] SyntaxNode? node); 400bool IsTopLevelNodeWithMembers([NotNullWhen(true)] SyntaxNode? node); 462bool IsNameOfSubpattern([NotNullWhen(true)] SyntaxNode? node); 465bool IsAnyPattern([NotNullWhen(true)] SyntaxNode? node); 466bool IsBinaryPattern([NotNullWhen(true)] SyntaxNode? node); 467bool IsUnaryPattern([NotNullWhen(true)] SyntaxNode? node); 493bool IsParameterNameXmlElementSyntax([NotNullWhen(true)] SyntaxNode? node); 501bool IsAnonymousFunctionExpression([NotNullWhen(true)] SyntaxNode? node); 502bool IsBaseNamespaceDeclaration([NotNullWhen(true)] SyntaxNode? node); 504bool IsBinaryExpression([NotNullWhen(true)] SyntaxNode? node); 505bool IsLiteralExpression([NotNullWhen(true)] SyntaxNode? node); 506bool IsMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 507bool IsMethodDeclaration([NotNullWhen(true)] SyntaxNode? node); 508bool IsSimpleName([NotNullWhen(true)] SyntaxNode? node); 509bool IsAnyName([NotNullWhen(true)] SyntaxNode? node); 510bool IsAnyType([NotNullWhen(true)] SyntaxNode? node); 512bool IsNamedMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 513bool IsElementAccessInitializer([NotNullWhen(true)] SyntaxNode? node); 515bool IsObjectMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 516bool IsObjectCollectionInitializer([NotNullWhen(true)] SyntaxNode? node); 565bool IsEqualsValueOfPropertyDeclaration([NotNullWhen(true)] SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (93)
23public static bool IsMemberInitializerNamedAssignmentIdentifier(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 616public static bool IsExpressionOfAwaitExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 625public static bool IsExpressionOfInvocationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 635public static bool IsExpressionOfMemberAccessExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 645public static bool IsNameOfAttribute(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 654public static bool IsRightOfQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 664public static bool IsRightOfAliasQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 674public static bool IsTypeOfObjectCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 711public static bool IsSkippedTokensTrivia(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 751public static bool IsAliasQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 754public static bool IsGenericName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 757public static bool IsIdentifierName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 760public static bool IsQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 767public static bool IsTupleType(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 774public static bool IsCharacterLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 777public static bool IsDefaultLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 780public static bool IsFalseLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 783public static bool IsNumericLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 786public static bool IsNullLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 789public static bool IsStringLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 792public static bool IsTrueLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 799public static bool IsArrayCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 802public static bool IsAwaitExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 805public static bool IsBaseExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 808public static bool IsConditionalExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 811public static bool IsConditionalAccessExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 814public static bool IsFieldExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 817public static bool IsImplicitArrayCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 820public static bool IsImplicitObjectCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 823public static bool IsIndexExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 826public static bool IsInterpolatedStringExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 829public static bool IsInterpolation(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 832public static bool IsInterpolatedStringText(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 835public static bool IsInvocationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 838public static bool IsIsTypeExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 841public static bool IsIsNotTypeExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 844public static bool IsIsPatternExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 847public static bool IsLogicalAndExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 850public static bool IsLogicalOrExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 853public static bool IsLogicalNotExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 856public static bool IsObjectCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 859public static bool IsParenthesizedExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 862public static bool IsQueryExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 865public static bool IsRangeExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 868public static bool IsRefExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 871public static bool IsSimpleMemberAccessExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 874public static bool IsSuppressNullableWarningExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 877public static bool IsThisExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 880public static bool IsThrowExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 883public static bool IsTupleExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 893public static bool IsAndPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 896public static bool IsConstantPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 899public static bool IsDeclarationPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 902public static bool IsListPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 905public static bool IsNotPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 908public static bool IsOrPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 911public static bool IsParenthesizedPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 914public static bool IsRecursivePattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 917public static bool IsRelationalPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 920public static bool IsTypePattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 923public static bool IsVarPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 930public static bool IsExpressionStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 933public static bool IsForEachStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 936public static bool IsForStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 939public static bool IsIfStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 942public static bool IsLocalDeclarationStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 945public static bool IsLocalFunctionStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 948public static bool IsLockStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 951public static bool IsReturnStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 954public static bool IsThrowStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 957public static bool IsUsingStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 960public static bool IsWhileStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 963public static bool IsYieldReturnStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 970public static bool IsAttribute(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 973public static bool IsClassDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 976public static bool IsCollectionExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 979public static bool IsConstructorDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 982public static bool IsEnumDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 985public static bool IsGlobalAttribute(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 988public static bool IsInterfaceDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 991public static bool IsParameter(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 994public static bool IsTypeConstraint(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 997public static bool IsVariableDeclarator(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1000public static bool IsFieldDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1003public static bool IsPropertyDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1006public static bool IsStructDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1009public static bool IsTypeArgumentList(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1016public static bool IsElseClause(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1018public static bool IsEqualsValueClause(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1025public static bool IsExpressionElement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1028public static bool IsImplicitElementAccess(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1031public static bool IsIndexerMemberCref(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1034public static bool IsPrimaryConstructorBaseType(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
42public bool TryGetQualifyMemberAccessOption(SymbolKind symbolKind, [NotNullWhen(true)] out CodeStyleOption2<bool>? option)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
116[NotNullWhen(true)] out SemanticModel? semanticModel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (5)
99protected abstract bool ExpressionMightReferenceMember([NotNullWhen(true)] SyntaxNode? node); 116protected abstract bool IsParenthesizedExpression([NotNullWhen(true)] SyntaxNode? node); 731private bool ReplacementBreaksSystemObjectMethodResolution(SyntaxNode currentOriginalNode, SyntaxNode currentReplacedNode, [NotNullWhen(true)] SyntaxNode? previousOriginalNode, [NotNullWhen(true)] SyntaxNode? previousReplacedNode) 755private static bool IsSymbolSystemObjectInstanceMethod([NotNullWhen(true)] ISymbol? symbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
253private bool TryGetNextItem(ICollection<TItem> itemsInFlight, [NotNullWhen(true)] out TItem? item)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
41public bool TryGetValue(TKey key, [NotNullWhen(true)] out TValue? value) 44public bool TryGetKey(TValue value, [NotNullWhen(true)] out TKey? key)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
60public bool TryGetValue(TKey key, [NotNullWhen(true)] out TValue? value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
81public static bool IsIntegral([NotNullWhen(true)] object? value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (2)
136public bool TryResolve<TNode>(SyntaxTree syntaxTree, CancellationToken cancellationToken, [NotNullWhen(true)] out TNode? node) 142public bool TryResolve<TNode>(SyntaxNode? root, [NotNullWhen(true)] out TNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
72public static bool HasEventHandlerSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? eventArgsType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
67public static bool IsContainedWithin([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol, INamedTypeSymbol outer) 683public static bool IsCollectionBuilderAttribute([NotNullWhen(true)] this INamedTypeSymbol? type) 702public static bool IsIEnumerableOfT([NotNullWhen(true)] this INamedTypeSymbol? type)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (54)
108bool TryFindLooseMatch(ISymbol symbol, INamedTypeSymbol baseType, [NotNullWhen(true)] out ISymbol? looseMatch) 178public static bool IsOverridable([NotNullWhen(true)] this ISymbol? symbol) 185public static bool IsImplementableMember([NotNullWhen(true)] this ISymbol? symbol) 225public static bool IsErrorType([NotNullWhen(true)] this ISymbol? symbol) 228public static bool IsModuleType([NotNullWhen(true)] this ISymbol? symbol) 231public static bool IsInterfaceType([NotNullWhen(true)] this ISymbol? symbol) 234public static bool IsArrayType([NotNullWhen(true)] this ISymbol? symbol) 237public static bool IsTupleType([NotNullWhen(true)] this ISymbol? symbol) 240public static bool IsAnonymousFunction([NotNullWhen(true)] this ISymbol? symbol) 243public static bool IsKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 246public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 249public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2) 255public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3) 261public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, params SymbolKind[] kinds) 267public static bool IsReducedExtension([NotNullWhen(true)] this ISymbol? symbol) 270public static bool IsEnumMember([NotNullWhen(true)] this ISymbol? symbol) 274public static bool IsExtensionMethod([NotNullWhen(true)] this ISymbol? symbol) 277public static bool IsLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 280public static bool IsAnonymousOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 283public static bool IsModuleMember([NotNullWhen(true)] this ISymbol? symbol) 286public static bool IsConstructor([NotNullWhen(true)] this ISymbol? symbol) 289public static bool IsStaticConstructor([NotNullWhen(true)] this ISymbol? symbol) 292public static bool IsDestructor([NotNullWhen(true)] this ISymbol? symbol) 295public static bool IsUserDefinedOperator([NotNullWhen(true)] this ISymbol? symbol) 298public static bool IsConversion([NotNullWhen(true)] this ISymbol? symbol) 301public static bool IsOrdinaryMethod([NotNullWhen(true)] this ISymbol? symbol) 304public static bool IsOrdinaryMethodOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 307public static bool IsDelegateType([NotNullWhen(true)] this ISymbol? symbol) 310public static bool IsAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 313public static bool IsNormalAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 316public static bool IsAnonymousDelegateType([NotNullWhen(true)] this ISymbol? symbol) 319public static bool IsAnonymousTypeProperty([NotNullWhen(true)] this ISymbol? symbol) 322public static bool IsTupleField([NotNullWhen(true)] this ISymbol? symbol) 325public static bool IsIndexer([NotNullWhen(true)] this ISymbol? symbol) 328public static bool IsWriteableFieldOrProperty([NotNullWhen(true)] this ISymbol? symbol) 336public static bool IsRequired([NotNullWhen(true)] this ISymbol? symbol) 403public static bool IsFunctionValue([NotNullWhen(true)] this ISymbol? symbol) 406public static bool IsThisParameter([NotNullWhen(true)] this ISymbol? symbol) 420public static bool IsParams([NotNullWhen(true)] this ISymbol? symbol) 475public static bool IsAttribute([NotNullWhen(true)] this ISymbol? symbol) 484public static bool RequiresUnsafeModifier([NotNullWhen(true)] this ISymbol? member) 534public static bool IsStaticType([NotNullWhen(true)] this ISymbol? symbol) 538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken) 652public static bool IsAccessor([NotNullWhen(true)] this ISymbol? symbol) 655public static bool IsPropertyAccessor([NotNullWhen(true)] this ISymbol? symbol) 658public static bool IsEventAccessor([NotNullWhen(true)] this ISymbol? symbol) 683public static bool IsAwaitableNonDynamic([NotNullWhen(true)] this ISymbol? symbol, SemanticModel semanticModel, int position) 822public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [NotNullWhen(true)] out TSymbol? result) where TSymbol : class, ISymbol 880public static bool HasAttribute([NotNullWhen(true)] this ISymbol? symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeClass) 889[NotNullWhen(true)] this ISymbol? symbol) 895[NotNullWhen(true)] this ISymbol? symbol, 896[NotNullWhen(true)] out IMethodSymbol? classicExtensionMethod)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (29)
26public static bool IsIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 29public static bool IsSignedIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 32public static bool CanAddNullCheck([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 51public static bool IsAbstractClass([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 54public static bool IsSystemVoid([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 57public static bool IsNullable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 60public static bool IsNonNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 64[NotNullWhen(true)] this ITypeSymbol? symbol, 65[NotNullWhen(true)] out ITypeSymbol? underlyingType) 77public static bool IsModuleType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 80public static bool IsInterfaceType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 83public static bool IsDelegateType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 86public static bool IsFunctionPointerType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 89public static bool IsStructType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 92public static bool IsAnonymousType([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol) 244public static bool IsFormattableStringOrIFormattable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 281public static bool IsNumericType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 310public static bool ContainsAnonymousType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 375public static bool IsSpecialType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 599public static bool IsOrDerivesFromExceptionType([NotNullWhen(returnValue: true)] this ITypeSymbol? type, Compilation compilation) 632public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type) 635public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type, [NotNullWhen(true)] out INamedTypeSymbol? enumType) 761public static bool IsDisposable([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? iDisposableType) 780public static bool IsSpanOrReadOnlySpan([NotNullWhen(true)] this ITypeSymbol? type) 783public static bool IsSpan([NotNullWhen(true)] this ITypeSymbol? type) 791public static bool IsReadOnlySpan([NotNullWhen(true)] this ISymbol? symbol) 799public static bool IsInlineArray([NotNullWhen(true)] this ITypeSymbol? type)