591 instantiations of NotNullWhen
Microsoft.CodeAnalysis.CodeStyle (357)
AbstractBlockFacts.cs (3)
12
public abstract bool IsScopeBlock([
NotNullWhen
(true)] SyntaxNode? node);
13
public abstract bool IsExecutableBlock([
NotNullWhen
(true)] SyntaxNode? node);
16
public abstract bool IsStatementContainer([
NotNullWhen
(true)] SyntaxNode? node);
AbstractFormatEngine.OperationApplier.cs (2)
231
[
NotNullWhen
(true)] out IList<TokenData>? tokenData)
256
[
NotNullWhen
(true)] out IList<TokenData>? tokenData,
AbstractHeaderFacts.cs (9)
23
public abstract bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [
NotNullWhen
(true)] out SyntaxNode? typeDeclaration);
24
public abstract bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? propertyDeclaration);
25
public abstract bool IsOnParameterHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? parameter);
26
public abstract bool IsOnMethodHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? method);
27
public abstract bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? localFunction);
28
public abstract bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? localDeclaration);
29
public abstract bool IsOnIfStatementHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? ifStatement);
30
public abstract bool IsOnWhileStatementHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? whileStatement);
31
public abstract bool IsOnForeachHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? foreachStatement);
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
137
[
NotNullWhen
(returnValue: true)] out string? targetNamespace)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
296
[
NotNullWhen
(returnValue: true)] out string? id,
821
[
NotNullWhen
(returnValue: true)] out string? id,
AbstractSimplifyInterpolationHelpers.cs (1)
235
private static bool HasNonImplicitInstance(IInvocationOperation invocation, [
NotNullWhen
(true)] out IOperation? instance)
AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (2)
72
static bool TryGetEnumerableTypeSymbol(Compilation compilation, [
NotNullWhen
(true)] out INamedTypeSymbol? enumerableType)
78
static bool TryGetLinqWhereExtensionMethod(INamedTypeSymbol enumerableType, [
NotNullWhen
(true)] out IMethodSymbol? whereMethod)
AbstractSpeculationAnalyzer.cs (5)
474
protected abstract bool IsParenthesizedExpression([
NotNullWhen
(true)] SyntaxNode? node);
679
private bool ReplacementBreaksSystemObjectMethodResolution(SyntaxNode currentOriginalNode, SyntaxNode currentReplacedNode, [
NotNullWhen
(true)] SyntaxNode? previousOriginalNode, [
NotNullWhen
(true)] SyntaxNode? previousReplacedNode)
703
private static bool IsSymbolSystemObjectInstanceMethod([
NotNullWhen
(true)] ISymbol? symbol)
834
protected abstract bool ExpressionMightReferenceMember([
NotNullWhen
(true)] SyntaxNode? node);
AbstractTriviaFormatter.cs (1)
139
protected bool IsNullOrWhitespace([
NotNullWhen
(true)] string? text)
AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (5)
43
protected abstract bool IsNullCheck(TExpressionSyntax condition, [
NotNullWhen
(true)] out TExpressionSyntax? checkedExpression);
48
protected abstract bool TryGetEmbeddedStatement(TIfStatementSyntax ifStatement, [
NotNullWhen
(true)] out TStatementSyntax? whenTrueStatement);
130
[
NotNullWhen
(true)] out TExpressionSyntax? expressionToCoalesce)
188
bool IsLegalWhenTrueStatementForAssignment([
NotNullWhen
(true)] out SyntaxNode? whenPartToAnalyze)
222
[
NotNullWhen
(true)] out TExpressionSyntax? expressionToCoalesce)
AbstractUseNullPropagationDiagnosticAnalyzer.cs (4)
75
[
NotNullWhen
(true)] out TExpressionSyntax? conditionPartToCheck, out bool isEquals);
200
[
NotNullWhen
(true)] out TExpressionSyntax? conditionPartToCheck,
232
[
NotNullWhen
(true)] out TExpressionSyntax? conditionPartToCheck, out bool isEquals)
255
[
NotNullWhen
(true)] out TExpressionSyntax? conditionPartToCheck,
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (2)
26
TIfStatementSyntax ifStatement, [
NotNullWhen
(true)] out TExpressionSyntax? condition, [
NotNullWhen
(true)] out TStatementSyntax? trueStatement);
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (4)
170
[
NotNullWhen
(true)] out IExpressionStatementOperation? expressionStatement,
171
[
NotNullWhen
(true)] out IAssignmentOperation? assignmentExpression)
211
[
NotNullWhen
(true)] out ISymbol? localOrParameter)
243
[
NotNullWhen
(true)] out ISymbol? localOrParameter)
BidirectionalMap.cs (2)
35
public bool TryGetValue(TKey key, [
NotNullWhen
(true)] out TValue? value)
38
public bool TryGetKey(TValue value, [
NotNullWhen
(true)] out TKey? key)
CodeStyleHelpers.cs (4)
16
public static bool TryParseStringEditorConfigCodeStyleOption(string arg, CodeStyleOption2<string> defaultValue, [
NotNullWhen
(true)] out CodeStyleOption2<string>? option)
52
string arg, [
NotNullWhen
(true)] out string? value)
63
string arg, NotificationOption2 defaultNotification, [
NotNullWhen
(true)] out string? value, [
NotNullWhen
(true)] out NotificationOption2 notification)
DictionaryAnalyzerConfigOptions.cs (1)
24
public override bool TryGetValue(string key, [
NotNullWhen
(true)] out string? value)
EditorConfigFile.cs (4)
32
[
NotNullWhen
(true)] out Section? sectionResult)
41
[
NotNullWhen
(true)] out Section? sectionResult)
58
[
NotNullWhen
(true)] out Section? sectionResult)
74
[
NotNullWhen
(true)] out Section? sectionResult)
EditorConfigNamingStyleParser_NamingRule.cs (1)
20
[
NotNullWhen
(true)] out SerializableNamingRule? serializableNamingRule)
EditorConfigNamingStyleParser_NamingStyle.cs (3)
22
[
NotNullWhen
(true)] out NamingScheme? namingScheme)
89
[
NotNullWhen
(true)] out TResult? namingStyle)
174
[
NotNullWhen
(true)] out Capitalization? capitalization)
EditorConfigNamingStyleParser_SymbolSpec.cs (3)
25
[
NotNullWhen
(true)] out ApplicableSymbolInfo? applicableSymbolInfo)
50
[
NotNullWhen
(true)] out SymbolSpecification? symbolSpec)
76
[
NotNullWhen
(true)] out TResult? symbolSpec)
FileNameUtilities.cs (1)
31
internal static bool IsFileName([
NotNullWhen
(returnValue: true)] string? path)
GeneratedCodeUtilities.cs (1)
61
private static bool IsGeneratedCodeFile([
NotNullWhen
(returnValue: true)] string? filePath)
HashCodeAnalyzer.cs (1)
35
public static bool TryGetAnalyzer(Compilation compilation, [
NotNullWhen
(true)] out HashCodeAnalyzer analyzer)
HashCodeAnalyzer.OperationDeconstructor.cs (1)
177
private static bool TryGetFieldOrProperty(IOperation operation, [
NotNullWhen
(true)] out ISymbol? symbol)
IBlockFacts.cs (3)
22
bool IsScopeBlock([
NotNullWhen
(true)] SyntaxNode? node);
28
bool IsExecutableBlock([
NotNullWhen
(true)] SyntaxNode? node);
37
bool IsStatementContainer([
NotNullWhen
(true)] SyntaxNode? node);
IDEDiagnosticIdToOptionMappingHelper.cs (2)
27
public static bool TryGetMappedOptions(string diagnosticId, string language, [
NotNullWhen
(true)] out ImmutableHashSet<IOption2>? options)
32
public static bool TryGetMappedFadingOption(string diagnosticId, [
NotNullWhen
(true)] out PerLanguageOption2<bool>? fadingOption)
IHeaderFacts.cs (9)
16
bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [
NotNullWhen
(true)] out SyntaxNode? typeDeclaration);
18
bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? propertyDeclaration);
19
bool IsOnParameterHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? parameter);
20
bool IsOnMethodHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? method);
21
bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? localFunction);
22
bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? localDeclaration);
23
bool IsOnIfStatementHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? ifStatement);
24
bool IsOnWhileStatementHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? whileStatement);
25
bool IsOnForeachHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? foreachStatement);
IHeaderFactsExtensions.cs (1)
14
public static bool IsOnTypeHeader(this IHeaderFacts headerFacts, SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? typeDeclaration)
IMethodSymbolExtensions.cs (1)
42
public static bool HasEventHandlerSignature(this IMethodSymbol method, [
NotNullWhen
(returnValue: true)] INamedTypeSymbol? eventArgsType)
ImmutableHashMap.cs (2)
474
internal bool TryExchangeKey(TKey key, [
NotNullWhen
(true)] out TKey? existingKey)
496
private static bool TryCastToImmutableMap(IEnumerable<KeyValuePair<TKey, TValue>> sequence, [
NotNullWhen
(true)] out ImmutableHashMap<TKey, TValue>? other)
INamedTypeSymbolExtensions.cs (1)
52
public static bool IsContainedWithin([
NotNullWhen
(returnValue: true)] this INamedTypeSymbol? symbol, INamedTypeSymbol outer)
IntegerUtilities.cs (1)
81
public static bool IsIntegral([
NotNullWhen
(true)] object? value)
ISemanticFacts.cs (9)
51
bool IsWrittenTo(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken);
58
bool IsOnlyWrittenTo(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken);
59
bool IsInOutContext(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken);
60
bool IsInRefContext(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken);
61
bool IsInInContext(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken);
63
bool CanReplaceWithRValue(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? expression, CancellationToken cancellationToken);
72
bool TryGetSpeculativeSemanticModel(SemanticModel oldSemanticModel, SyntaxNode oldNode, SyntaxNode newNode, [
NotNullWhen
(true)] out SemanticModel? speculativeModel);
100
bool IsInsideNameOfExpression(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken);
107
bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [
NotNullWhen
(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken);
ISemanticFactsExtensions.cs (2)
111
private static bool IsUserDefinedOperator([
NotNullWhen
(returnValue: true)] ISymbol? symbol)
118
private static bool IsFloatingPoint([
NotNullWhen
(returnValue: true)] ITypeSymbol? type)
ISymbolExtensions.cs (47)
110
public static bool IsOverridable([
NotNullWhen
(true)] this ISymbol? symbol)
119
public static bool IsImplementableMember([
NotNullWhen
(true)] this ISymbol? symbol)
162
public static bool IsErrorType([
NotNullWhen
(true)] this ISymbol? symbol)
165
public static bool IsModuleType([
NotNullWhen
(true)] this ISymbol? symbol)
168
public static bool IsInterfaceType([
NotNullWhen
(true)] this ISymbol? symbol)
171
public static bool IsArrayType([
NotNullWhen
(true)] this ISymbol? symbol)
174
public static bool IsTupleType([
NotNullWhen
(true)] this ISymbol? symbol)
177
public static bool IsAnonymousFunction([
NotNullWhen
(true)] this ISymbol? symbol)
180
public static bool IsKind([
NotNullWhen
(true)] this ISymbol? symbol, SymbolKind kind)
183
public static bool MatchesKind([
NotNullWhen
(true)] this ISymbol? symbol, SymbolKind kind)
186
public static bool MatchesKind([
NotNullWhen
(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2)
192
public static bool MatchesKind([
NotNullWhen
(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3)
198
public static bool MatchesKind([
NotNullWhen
(true)] this ISymbol? symbol, params SymbolKind[] kinds)
204
public static bool IsReducedExtension([
NotNullWhen
(true)] this ISymbol? symbol)
207
public static bool IsEnumMember([
NotNullWhen
(true)] this ISymbol? symbol)
213
public static bool IsLocalFunction([
NotNullWhen
(true)] this ISymbol? symbol)
216
public static bool IsAnonymousOrLocalFunction([
NotNullWhen
(true)] this ISymbol? symbol)
219
public static bool IsModuleMember([
NotNullWhen
(true)] this ISymbol? symbol)
222
public static bool IsConstructor([
NotNullWhen
(true)] this ISymbol? symbol)
225
public static bool IsStaticConstructor([
NotNullWhen
(true)] this ISymbol? symbol)
228
public static bool IsDestructor([
NotNullWhen
(true)] this ISymbol? symbol)
231
public static bool IsUserDefinedOperator([
NotNullWhen
(true)] this ISymbol? symbol)
234
public static bool IsConversion([
NotNullWhen
(true)] this ISymbol? symbol)
237
public static bool IsOrdinaryMethod([
NotNullWhen
(true)] this ISymbol? symbol)
240
public static bool IsOrdinaryMethodOrLocalFunction([
NotNullWhen
(true)] this ISymbol? symbol)
243
public static bool IsDelegateType([
NotNullWhen
(true)] this ISymbol? symbol)
246
public static bool IsAnonymousType([
NotNullWhen
(true)] this ISymbol? symbol)
249
public static bool IsNormalAnonymousType([
NotNullWhen
(true)] this ISymbol? symbol)
252
public static bool IsAnonymousDelegateType([
NotNullWhen
(true)] this ISymbol? symbol)
255
public static bool IsAnonymousTypeProperty([
NotNullWhen
(true)] this ISymbol? symbol)
258
public static bool IsTupleField([
NotNullWhen
(true)] this ISymbol? symbol)
261
public static bool IsIndexer([
NotNullWhen
(true)] this ISymbol? symbol)
264
public static bool IsWriteableFieldOrProperty([
NotNullWhen
(true)] this ISymbol? symbol)
272
public static bool IsRequired([
NotNullWhen
(true)] this ISymbol? symbol)
337
public static bool IsFunctionValue([
NotNullWhen
(true)] this ISymbol? symbol)
340
public static bool IsThisParameter([
NotNullWhen
(true)] this ISymbol? symbol)
354
public static bool IsParams([
NotNullWhen
(true)] this ISymbol? symbol)
409
public static bool IsAttribute([
NotNullWhen
(true)] this ISymbol? symbol)
418
public static bool RequiresUnsafeModifier([
NotNullWhen
(true)] this ISymbol? member)
468
public static bool IsStaticType([
NotNullWhen
(true)] this ISymbol? symbol)
471
public static bool IsNamespace([
NotNullWhen
(true)] this ISymbol? symbol)
475
[
NotNullWhen
(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken)
545
public static bool IsAccessor([
NotNullWhen
(true)] this ISymbol? symbol)
548
public static bool IsPropertyAccessor([
NotNullWhen
(true)] this ISymbol? symbol)
551
public static bool IsEventAccessor([
NotNullWhen
(true)] this ISymbol? symbol)
576
public static bool IsAwaitableNonDynamic([
NotNullWhen
(true)] this ISymbol? symbol, SemanticModel semanticModel, int position)
715
public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [
NotNullWhen
(true)] out TSymbol? result) where TSymbol : class, ISymbol
ISyntaxFacts.cs (71)
122
bool IsPredefinedType([
NotNullWhen
(true)] SyntaxNode? node);
123
bool IsPredefinedType([
NotNullWhen
(true)] SyntaxNode? node, PredefinedType type);
172
bool IsUsingOrExternOrImport([
NotNullWhen
(true)] SyntaxNode? node);
173
bool IsGlobalAssemblyAttribute([
NotNullWhen
(true)] SyntaxNode? node);
174
bool IsGlobalModuleAttribute([
NotNullWhen
(true)] SyntaxNode? node);
175
bool IsDeclaration([
NotNullWhen
(true)] SyntaxNode? node);
178
bool IsUsingAliasDirective([
NotNullWhen
(true)] SyntaxNode? node);
190
bool IsEntirelyWithinStringOrCharOrNumericLiteral([
NotNullWhen
(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken);
194
bool TryGetExternalSourceInfo([
NotNullWhen
(true)] SyntaxNode? directive, out ExternalSourceInfo info);
196
bool IsDeclarationExpression([
NotNullWhen
(true)] SyntaxNode? node);
198
bool IsConversionExpression([
NotNullWhen
(true)] SyntaxNode? node);
199
bool IsCastExpression([
NotNullWhen
(true)] SyntaxNode? node);
201
bool IsExpressionOfForeach([
NotNullWhen
(true)] SyntaxNode? node);
210
bool IsLeftSideOfAssignment([
NotNullWhen
(true)] SyntaxNode? node);
212
bool IsAnyAssignmentStatement([
NotNullWhen
(true)] SyntaxNode? statement);
213
bool IsSimpleAssignmentStatement([
NotNullWhen
(true)] SyntaxNode? statement);
218
bool IsLeftSideOfAnyAssignment([
NotNullWhen
(true)] SyntaxNode? node);
220
bool IsLeftSideOfCompoundAssignment([
NotNullWhen
(true)] SyntaxNode? node);
223
bool IsInferredAnonymousObjectMemberDeclarator([
NotNullWhen
(true)] SyntaxNode? node);
224
bool IsOperandOfIncrementExpression([
NotNullWhen
(true)] SyntaxNode? node);
225
bool IsOperandOfIncrementOrDecrementExpression([
NotNullWhen
(true)] SyntaxNode? node);
227
bool IsLeftSideOfDot([
NotNullWhen
(true)] SyntaxNode? node);
244
bool IsLeftSideOfExplicitInterfaceSpecifier([
NotNullWhen
(true)] SyntaxNode? node);
246
bool IsNameOfSimpleMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node);
247
bool IsNameOfAnyMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node);
248
bool IsNameOfMemberBindingExpression([
NotNullWhen
(true)] SyntaxNode? node);
281
bool IsPointerMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node);
283
bool IsNamedArgument([
NotNullWhen
(true)] SyntaxNode? node);
284
bool IsNameOfNamedArgument([
NotNullWhen
(true)] SyntaxNode? node);
286
bool IsParameterList([
NotNullWhen
(true)] SyntaxNode? node);
297
bool IsMemberBindingExpression([
NotNullWhen
(true)] SyntaxNode? node);
298
bool IsPostfixUnaryExpression([
NotNullWhen
(true)] SyntaxNode? node);
309
bool IsSimpleArgument([
NotNullWhen
(true)] SyntaxNode? node);
310
bool IsArgument([
NotNullWhen
(true)] SyntaxNode? node);
311
bool IsAttributeArgument([
NotNullWhen
(true)] SyntaxNode? node);
325
bool IsUsingDirectiveName([
NotNullWhen
(true)] SyntaxNode? node);
331
bool IsAttributeNamedArgumentIdentifier([
NotNullWhen
(true)] SyntaxNode? node);
332
bool IsMemberInitializerNamedAssignmentIdentifier([
NotNullWhen
(true)] SyntaxNode? node, [
NotNullWhen
(true)] out SyntaxNode? initializedInstance);
333
bool IsAnyInitializerExpression([
NotNullWhen
(true)] SyntaxNode? node, [
NotNullWhen
(true)] out SyntaxNode? creationExpression);
335
bool IsDirective([
NotNullWhen
(true)] SyntaxNode? node);
336
bool IsStatement([
NotNullWhen
(true)] SyntaxNode? node);
337
bool IsExecutableStatement([
NotNullWhen
(true)] SyntaxNode? node);
338
bool IsGlobalStatement([
NotNullWhen
(true)] SyntaxNode? node);
342
bool IsDeconstructionAssignment([
NotNullWhen
(true)] SyntaxNode? node);
343
bool IsDeconstructionForEachStatement([
NotNullWhen
(true)] SyntaxNode? node);
357
bool IsMethodBody([
NotNullWhen
(true)] SyntaxNode? node);
366
bool IsElementAccessExpression([
NotNullWhen
(true)] SyntaxNode? node);
387
bool IsInNamespaceOrTypeContext([
NotNullWhen
(true)] SyntaxNode? node);
389
bool IsBaseTypeList([
NotNullWhen
(true)] SyntaxNode? node);
391
bool IsInConstantContext([
NotNullWhen
(true)] SyntaxNode? node);
393
bool IsMethodLevelMember([
NotNullWhen
(true)] SyntaxNode? node);
394
bool IsTopLevelNodeWithMembers([
NotNullWhen
(true)] SyntaxNode? node);
417
bool ContainsInMemberBody([
NotNullWhen
(true)] SyntaxNode? node, TextSpan span);
455
bool IsNameOfSubpattern([
NotNullWhen
(true)] SyntaxNode? node);
458
bool IsAnyPattern([
NotNullWhen
(true)] SyntaxNode? node);
459
bool IsBinaryPattern([
NotNullWhen
(true)] SyntaxNode? node);
460
bool IsUnaryPattern([
NotNullWhen
(true)] SyntaxNode? node);
486
bool IsParameterNameXmlElementSyntax([
NotNullWhen
(true)] SyntaxNode? node);
494
bool IsAnonymousFunctionExpression([
NotNullWhen
(true)] SyntaxNode? node);
495
bool IsBaseNamespaceDeclaration([
NotNullWhen
(true)] SyntaxNode? node);
496
bool IsBinaryExpression([
NotNullWhen
(true)] SyntaxNode? node);
497
bool IsLiteralExpression([
NotNullWhen
(true)] SyntaxNode? node);
498
bool IsMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node);
499
bool IsSimpleName([
NotNullWhen
(true)] SyntaxNode? node);
501
bool IsNamedMemberInitializer([
NotNullWhen
(true)] SyntaxNode? node);
502
bool IsElementAccessInitializer([
NotNullWhen
(true)] SyntaxNode? node);
504
bool IsObjectMemberInitializer([
NotNullWhen
(true)] SyntaxNode? node);
505
bool IsObjectCollectionInitializer([
NotNullWhen
(true)] SyntaxNode? node);
550
bool IsEqualsValueOfPropertyDeclaration([
NotNullWhen
(true)] SyntaxNode? node);
ISyntaxFactsExtensions.cs (83)
23
public static bool IsMemberInitializerNamedAssignmentIdentifier(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
606
public static bool IsExpressionOfAwaitExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
615
public static bool IsExpressionOfInvocationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
625
public static bool IsExpressionOfMemberAccessExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
635
public static bool IsRightOfQualifiedName(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
645
public static bool IsTypeOfObjectCreationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
682
public static bool IsSkippedTokensTrivia(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
722
public static bool IsGenericName(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
725
public static bool IsIdentifierName(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
728
public static bool IsQualifiedName(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
735
public static bool IsTupleType(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
742
public static bool IsCharacterLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
745
public static bool IsDefaultLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
748
public static bool IsFalseLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
751
public static bool IsNumericLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
754
public static bool IsNullLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
757
public static bool IsStringLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
760
public static bool IsTrueLiteralExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
767
public static bool IsArrayCreationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
770
public static bool IsAwaitExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
773
public static bool IsBaseExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
776
public static bool IsConditionalExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
779
public static bool IsConditionalAccessExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
782
public static bool IsImplicitArrayCreationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
785
public static bool IsImplicitObjectCreationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
788
public static bool IsIndexExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
791
public static bool IsInterpolatedStringExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
794
public static bool IsInterpolation(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
797
public static bool IsInterpolatedStringText(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
800
public static bool IsInvocationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
803
public static bool IsIsTypeExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
806
public static bool IsIsNotTypeExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
809
public static bool IsIsPatternExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
812
public static bool IsLogicalAndExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
815
public static bool IsLogicalOrExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
818
public static bool IsLogicalNotExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
821
public static bool IsObjectCreationExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
824
public static bool IsParenthesizedExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
827
public static bool IsQueryExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
830
public static bool IsRangeExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
833
public static bool IsRefExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
836
public static bool IsSimpleMemberAccessExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
839
public static bool IsThisExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
842
public static bool IsThrowExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
845
public static bool IsTupleExpression(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
855
public static bool IsAndPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
858
public static bool IsConstantPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
861
public static bool IsDeclarationPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
864
public static bool IsNotPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
867
public static bool IsOrPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
870
public static bool IsParenthesizedPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
873
public static bool IsRecursivePattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
876
public static bool IsRelationalPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
879
public static bool IsTypePattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
882
public static bool IsVarPattern(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
889
public static bool IsExpressionStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
892
public static bool IsForEachStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
895
public static bool IsIfStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
898
public static bool IsLocalDeclarationStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
901
public static bool IsLocalFunctionStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
904
public static bool IsLockStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
907
public static bool IsReturnStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
910
public static bool IsThrowStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
913
public static bool IsUsingStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
916
public static bool IsWhileStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
919
public static bool IsYieldReturnStatement(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
926
public static bool IsAttribute(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
929
public static bool IsClassDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
932
public static bool IsConstructorDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
935
public static bool IsEnumDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
938
public static bool IsGlobalAttribute(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
941
public static bool IsInterfaceDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
944
public static bool IsParameter(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
947
public static bool IsTypeConstraint(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
950
public static bool IsVariableDeclarator(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
953
public static bool IsFieldDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
956
public static bool IsPropertyDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
959
public static bool IsStructDeclaration(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
962
public static bool IsTypeArgumentList(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
969
public static bool IsElseClause(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
971
public static bool IsEqualsValueClause(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
978
public static bool IsImplicitElementAccess(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
981
public static bool IsIndexerMemberCref(this ISyntaxFacts syntaxFacts, [
NotNullWhen
(true)] SyntaxNode? node)
ITypeSymbolExtensions.cs (25)
22
public static bool IsIntegralType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? type)
25
public static bool IsSignedIntegralType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? type)
28
public static bool CanAddNullCheck([
NotNullWhen
(returnValue: true)] this ITypeSymbol? type)
53
public static bool IsAbstractClass([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
56
public static bool IsSystemVoid([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
59
public static bool IsNullable([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
62
public static bool IsNonNullableValueType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
66
[
NotNullWhen
(true)] this ITypeSymbol? symbol,
67
[
NotNullWhen
(true)] out ITypeSymbol? underlyingType)
79
public static bool IsModuleType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
82
public static bool IsInterfaceType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
85
public static bool IsDelegateType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
88
public static bool IsFunctionPointerType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
91
public static bool IsStructType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
94
public static bool IsAnonymousType([
NotNullWhen
(returnValue: true)] this INamedTypeSymbol? symbol)
245
public static bool IsFormattableStringOrIFormattable([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
282
public static bool IsNumericType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? type)
311
public static bool ContainsAnonymousType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
370
public static bool IsSpecialType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? symbol)
587
public static bool IsOrDerivesFromExceptionType([
NotNullWhen
(returnValue: true)] this ITypeSymbol? type, Compilation compilation)
620
public static bool IsEnumType([
NotNullWhen
(true)] this ITypeSymbol? type)
623
public static bool IsEnumType([
NotNullWhen
(true)] this ITypeSymbol? type, [
NotNullWhen
(true)] out INamedTypeSymbol? enumType)
714
public static bool IsDisposable([
NotNullWhen
(returnValue: true)] this ITypeSymbol? type, [
NotNullWhen
(returnValue: true)] ITypeSymbol? iDisposableType)
J\s\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs\StringExtensions.cs (4)
98
internal static bool IsValidClrTypeName([
NotNullWhen
(returnValue: true)] this string? name)
106
internal static bool IsValidClrNamespaceName([
NotNullWhen
(returnValue: true)] this string? name)
144
[
NotNullWhen
(returnValue: true)] out string? result)
159
[
NotNullWhen
(returnValue: true)] out string? result)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
18
public static bool OverlapsHiddenPosition([
NotNullWhen
(returnValue: true)] this SyntaxTree? tree, TextSpan span, CancellationToken cancellationToken)
ListExtensions.cs (1)
48
public static bool TryRemoveFirst<T, TArg>(this IList<T> list, Func<T, TArg, bool> selector, TArg arg, [
NotNullWhen
(true)] out T? removedItem)
Logger.cs (1)
43
private static bool TryGetActiveLogger(FunctionId functionId, [
NotNullWhen
(true)] out ILogger? activeLogger)
OperationExtensions.cs (3)
250
public static bool IsInLeftOfDeconstructionAssignment(this IOperation operation, [
NotNullWhen
(true)] out IDeconstructionAssignmentOperation? deconstructionAssignment)
348
public static bool HasAnyOperationDescendant(this IOperation operationBlock, Func<IOperation, bool> predicate, [
NotNullWhen
(true)] out IOperation? foundOperation)
390
public static bool IsSingleThrowNotImplementedOperation([
NotNullWhen
(true)] this IOperation? firstBlock)
OrderModifiersHelpers.cs (2)
43
public bool TryGetOrComputePreferredOrder(string value, [
NotNullWhen
(true)] out Dictionary<int, int>? preferredOrder)
68
protected virtual bool TryParse(string value, [
NotNullWhen
(true)] out Dictionary<int, int>? parsed)
PathUtilities.cs (2)
353
public static bool IsAbsolute([
NotNullWhen
(true)] string? path)
745
public static bool IsValidFilePath([
NotNullWhen
(true)] string? fullPath)
RoslynString.cs (2)
12
public static bool IsNullOrEmpty([
NotNullWhen
(returnValue: false)] string? value)
16
public static bool IsNullOrWhiteSpace([
NotNullWhen
(returnValue: false)] string? value)
SemanticModelExtensions.cs (1)
201
[
NotNullWhen
(true)] out string? parameterName)
SimplifierOptions.cs (1)
48
public bool TryGetQualifyMemberAccessOption(SymbolKind symbolKind, [
NotNullWhen
(true)] out CodeStyleOption2<bool>? option)
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
113
public bool TrySimplify(SemanticModel model, SyntaxNode node, [
NotNullWhen
(true)] out Diagnostic? diagnostic, TSimplifierOptions options, CancellationToken cancellationToken)
StructuredAnalyzerConfigOptions.cs (4)
34
public override bool TryGetValue(string key, [
NotNullWhen
(true)] out string? value)
49
public override bool TryGetValue(string key, [
NotNullWhen
(true)] out string? value)
75
public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [
NotNullWhen
(true)] out StructuredAnalyzerConfigOptions? options)
107
private static bool TryGetCorrespondingCodeStyleInstance(AnalyzerConfigOptions configOptions, [
NotNullWhen
(true)] out StructuredAnalyzerConfigOptions? options)
SuppressMessageAttributeState.cs (1)
140
[
NotNullWhen
(returnValue: true)] out IOperation? argumentValueOperation)
SymbolKey.BodyLevelSymbolKey.cs (1)
117
[
NotNullWhen
(true)] out SemanticModel? semanticModel)
SyntaxNodeExtensions.cs (1)
124
public static bool CheckParent<T>([
NotNullWhen
(returnValue: true)] this SyntaxNode? node, Func<T, bool> valueChecker) where T : SyntaxNode
SyntaxPath.cs (2)
136
public bool TryResolve<TNode>(SyntaxTree syntaxTree, CancellationToken cancellationToken, [
NotNullWhen
(true)] out TNode? node)
142
public bool TryResolve<TNode>(SyntaxNode? root, [
NotNullWhen
(true)] out TNode? node)
TokenStream.Changes.cs (1)
36
public readonly bool TryGet(int key, [
NotNullWhen
(true)] out TriviaData? triviaInfo)
UnicodeCharacterUtilities.cs (1)
91
public static bool IsValidIdentifier([
NotNullWhen
(returnValue: true)] string? name)
UseCollectionInitializerAnalyzer.cs (2)
142
[
NotNullWhen
(true)] out SyntaxNode? instance)
185
[
NotNullWhen
(true)] out SyntaxNode? instance)
UseConditionalExpressionForAssignmentHelpers.cs (3)
17
[
NotNullWhen
(true)] out IOperation trueStatement,
18
[
NotNullWhen
(true)] out IOperation? falseStatement,
58
[
NotNullWhen
(true)] IOperation? statement,
UseConditionalExpressionForReturnHelpers.cs (2)
18
[
NotNullWhen
(true)] out IOperation? trueStatement,
19
[
NotNullWhen
(true)] out IOperation? falseStatement,
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
AbstractMakeMemberStaticCodeFixProvider.cs (1)
19
protected abstract bool TryGetMemberDeclaration(SyntaxNode node, [
NotNullWhen
(true)] out SyntaxNode? memberDeclaration);
AbstractMakeTypeAbstractCodeFixProvider.cs (1)
20
protected abstract bool IsValidRefactoringContext(SyntaxNode? node, [
NotNullWhen
(true)] out TTypeDeclarationSyntax? typeDeclaration);
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
157
[
NotNullWhen
(true)] out IVariableDeclarationGroupOperation? localDeclaration,
158
[
NotNullWhen
(true)] out IVariableDeclaratorOperation? declarator)
AbstractUseNullPropagationCodeFixProvider.cs (1)
51
protected abstract bool TryGetBlock(SyntaxNode? node, [
NotNullWhen
(true)] out TStatementSyntax? block);
ArrayExtensions.cs (1)
12
public static bool IsNullOrEmpty<T>([
NotNullWhen
(returnValue: false)] this T[]? array)
CodeGenerationHelpers.cs (2)
84
public static bool IsSpecialType([
NotNullWhen
(true)] ITypeSymbol? type, SpecialType specialType)
117
ISymbol symbol, string commentToken, [
NotNullWhen
(true)] out string? comment, CancellationToken cancellationToken = default)
Fixer.cs (1)
116
[
NotNullWhen
(true)] out ITypeSymbol? targetArgumentConversionType)
SimplificationHelpers.cs (1)
94
public static bool IsValidSymbolInfo([
NotNullWhen
(true)] ISymbol? symbol)
Microsoft.CodeAnalysis.CSharp.CodeStyle (193)
BlockSyntaxExtensions.cs (3)
22
[
NotNullWhen
(true)] out ExpressionSyntax? expression,
52
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? arrowExpression,
114
private static bool TryGetExpression(StatementSyntax firstStatement, LanguageVersion languageVersion, [
NotNullWhen
(true)] out ExpressionSyntax? expression, out SyntaxToken semicolonToken)
CastSimplifier.cs (1)
754
private static bool IsNullOrErrorType([
NotNullWhen
(false)] ITypeSymbol? type)
ConvertNamespaceAnalysis.cs (2)
25
public static bool CanOfferUseBlockScoped(CodeStyleOption2<NamespaceDeclarationPreference> option, [
NotNullWhen
(true)] BaseNamespaceDeclarationSyntax? declaration, bool forAnalyzer)
41
internal static bool CanOfferUseFileScoped(CodeStyleOption2<NamespaceDeclarationPreference> option, CompilationUnitSyntax root, [
NotNullWhen
(true)] BaseNamespaceDeclarationSyntax? declaration, bool forAnalyzer)
CSharpAccessibilityFacts.cs (3)
322
public static bool ParentIsFieldDeclaration([
NotNullWhen
(true)] SyntaxNode? node)
325
public static bool ParentIsEventFieldDeclaration([
NotNullWhen
(true)] SyntaxNode? node)
328
public static bool ParentIsLocalDeclarationStatement([
NotNullWhen
(true)] SyntaxNode? node)
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (5)
270
[
NotNullWhen
(true)] out VariableDeclaratorSyntax? declarator,
271
[
NotNullWhen
(true)] out BinaryExpressionSyntax? asExpression,
272
[
NotNullWhen
(true)] out ILocalSymbol? localSymbol)
318
[
NotNullWhen
(true)] out ILocalSymbol? localSymbol,
319
[
NotNullWhen
(true)] out VariableDeclaratorSyntax? declarator)
CSharpBlockFacts.cs (3)
22
public override bool IsScopeBlock([
NotNullWhen
(true)] SyntaxNode? node)
25
public override bool IsExecutableBlock([
NotNullWhen
(true)] SyntaxNode? node)
42
public override bool IsStatementContainer([
NotNullWhen
(true)] SyntaxNode? node)
CSharpHeaderFacts.cs (9)
24
public override bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [
NotNullWhen
(true)] out SyntaxNode? typeDeclaration)
38
public override bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? propertyDeclaration)
51
public override bool IsOnParameterHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? parameter)
64
public override bool IsOnMethodHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? method)
77
public override bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? localFunction)
90
public override bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? localDeclaration)
105
public override bool IsOnIfStatementHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? ifStatement)
118
public override bool IsOnWhileStatementHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? whileStatement)
131
public override bool IsOnForeachHeader(SyntaxNode root, int position, [
NotNullWhen
(true)] out SyntaxNode? foreachStatement)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (4)
153
[
NotNullWhen
(true)] out IfStatementSyntax? ifStatement,
154
[
NotNullWhen
(true)] out LocalDeclarationStatementSyntax? localDeclarationStatement,
155
[
NotNullWhen
(true)] out VariableDeclaratorSyntax? declarator,
156
[
NotNullWhen
(true)] out CastExpressionSyntax? castExpression)
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (2)
73
[
NotNullWhen
(true)] out TypeDeclarationSyntax? typeDeclaration,
74
[
NotNullWhen
(true)] out CodeStyleOption2<bool>? option)
CSharpOrderModifiersHelper.cs (1)
25
protected override bool TryParse(string value, [
NotNullWhen
(true)] out Dictionary<int, int>? parsed)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
280
[
NotNullWhen
(true)] out InvocationExpressionSyntax? invocation,
303
[
NotNullWhen
(true)] out InvocationExpressionSyntax? invocation,
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
75
private static bool IsReducing([
NotNullWhen
(true)] NullableContextOptions? oldOptions, [
NotNullWhen
(true)] NullableContextOptions? newOptions)
CSharpSemanticFacts.cs (9)
38
public bool IsWrittenTo(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken)
41
public bool IsOnlyWrittenTo(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken)
44
public bool IsInOutContext(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken)
47
public bool IsInRefContext(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken)
50
public bool IsInInContext(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken)
53
public bool CanReplaceWithRValue(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? expression, CancellationToken cancellationToken)
112
[
NotNullWhen
(true)] out SemanticModel? speculativeModel)
365
public bool IsInsideNameOfExpression(SemanticModel semanticModel, [
NotNullWhen
(true)] SyntaxNode? node, CancellationToken cancellationToken)
389
public bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [
NotNullWhen
(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken)
CSharpSyntaxFacts.cs (68)
121
public bool IsEntirelyWithinStringOrCharOrNumericLiteral([
NotNullWhen
(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken)
131
public bool IsDirective([
NotNullWhen
(true)] SyntaxNode? node)
134
public bool TryGetExternalSourceInfo([
NotNullWhen
(true)] SyntaxNode? node, out ExternalSourceInfo info)
155
public bool IsNameOfSimpleMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node)
161
public bool IsNameOfAnyMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node)
164
public bool IsNameOfMemberBindingExpression([
NotNullWhen
(true)] SyntaxNode? node)
177
public bool IsDeclarationExpression([
NotNullWhen
(true)] SyntaxNode? node)
183
public bool IsNamedArgument([
NotNullWhen
(true)] SyntaxNode? node)
186
public bool IsNameOfNamedArgument([
NotNullWhen
(true)] SyntaxNode? node)
192
public bool IsParameterList([
NotNullWhen
(true)] SyntaxNode? node)
195
public bool IsUsingDirectiveName([
NotNullWhen
(true)] SyntaxNode? node)
199
public bool IsUsingAliasDirective([
NotNullWhen
(true)] SyntaxNode? node)
210
public bool IsDeconstructionForEachStatement([
NotNullWhen
(true)] SyntaxNode? node)
213
public bool IsDeconstructionAssignment([
NotNullWhen
(true)] SyntaxNode? node)
226
public bool IsStatement([
NotNullWhen
(true)] SyntaxNode? node)
229
public bool IsExecutableStatement([
NotNullWhen
(true)] SyntaxNode? node)
232
public bool IsGlobalStatement([
NotNullWhen
(true)] SyntaxNode? node)
257
public bool IsMethodBody([
NotNullWhen
(true)] SyntaxNode? node)
533
public bool IsPostfixUnaryExpression([
NotNullWhen
(true)] SyntaxNode? node)
536
public bool IsMemberBindingExpression([
NotNullWhen
(true)] SyntaxNode? node)
539
public bool IsPointerMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node)
578
public bool IsInNamespaceOrTypeContext([
NotNullWhen
(true)] SyntaxNode? node)
581
public bool IsBaseTypeList([
NotNullWhen
(true)] SyntaxNode? node)
593
public bool IsArgument([
NotNullWhen
(true)] SyntaxNode? node)
596
public bool IsAttributeArgument([
NotNullWhen
(true)] SyntaxNode? node)
599
public bool IsSimpleArgument([
NotNullWhen
(true)] SyntaxNode? node)
606
public bool IsInConstantContext([
NotNullWhen
(true)] SyntaxNode? node)
618
public bool IsAttributeNamedArgumentIdentifier([
NotNullWhen
(true)] SyntaxNode? node)
632
public bool IsNameOfSubpattern([
NotNullWhen
(true)] SyntaxNode? node)
641
[
NotNullWhen
(true)] SyntaxNode? node, [
NotNullWhen
(true)] out SyntaxNode? initializedInstance)
672
public bool IsAnyInitializerExpression([
NotNullWhen
(true)] SyntaxNode? node, [
NotNullWhen
(true)] out SyntaxNode? creationExpression)
724
public bool IsMethodLevelMember([
NotNullWhen
(true)] SyntaxNode? node)
732
public bool IsTopLevelNodeWithMembers([
NotNullWhen
(true)] SyntaxNode? node)
959
public bool ContainsInMemberBody([
NotNullWhen
(true)] SyntaxNode? node, TextSpan span)
1138
public bool IsLeftSideOfDot([
NotNullWhen
(true)] SyntaxNode? node)
1153
public bool IsLeftSideOfExplicitInterfaceSpecifier([
NotNullWhen
(true)] SyntaxNode? node)
1156
public bool IsLeftSideOfAssignment([
NotNullWhen
(true)] SyntaxNode? node)
1159
public bool IsLeftSideOfAnyAssignment([
NotNullWhen
(true)] SyntaxNode? node)
1162
public bool IsLeftSideOfCompoundAssignment([
NotNullWhen
(true)] SyntaxNode? node)
1168
public bool IsInferredAnonymousObjectMemberDeclarator([
NotNullWhen
(true)] SyntaxNode? node)
1172
public bool IsOperandOfIncrementExpression([
NotNullWhen
(true)] SyntaxNode? node)
1176
public static bool IsOperandOfDecrementExpression([
NotNullWhen
(true)] SyntaxNode? node)
1180
public bool IsOperandOfIncrementOrDecrementExpression([
NotNullWhen
(true)] SyntaxNode? node)
1221
public bool IsUsingOrExternOrImport([
NotNullWhen
(true)] SyntaxNode? node)
1227
public bool IsGlobalAssemblyAttribute([
NotNullWhen
(true)] SyntaxNode? node)
1230
public bool IsGlobalModuleAttribute([
NotNullWhen
(true)] SyntaxNode? node)
1233
private static bool IsGlobalAttribute([
NotNullWhen
(true)] SyntaxNode? node, SyntaxKind attributeTarget)
1291
public bool IsSimpleAssignmentStatement([
NotNullWhen
(true)] SyntaxNode? statement)
1318
public bool IsAnyAssignmentStatement([
NotNullWhen
(true)] SyntaxNode? node)
1350
public bool IsExpressionOfForeach([
NotNullWhen
(true)] SyntaxNode? node)
1396
public bool IsConversionExpression([
NotNullWhen
(true)] SyntaxNode? node)
1399
public bool IsCastExpression([
NotNullWhen
(true)] SyntaxNode? node)
1422
public bool IsParameterNameXmlElementSyntax([
NotNullWhen
(true)] SyntaxNode? node)
1451
public bool IsAnyPattern([
NotNullWhen
(true)] SyntaxNode? node)
1480
public bool IsBinaryPattern([
NotNullWhen
(true)] SyntaxNode? node)
1483
public bool IsUnaryPattern([
NotNullWhen
(true)] SyntaxNode? node)
1535
public bool IsAnonymousFunctionExpression([
NotNullWhen
(true)] SyntaxNode? node)
1538
public bool IsBaseNamespaceDeclaration([
NotNullWhen
(true)] SyntaxNode? node)
1541
public bool IsBinaryExpression([
NotNullWhen
(true)] SyntaxNode? node)
1544
public bool IsLiteralExpression([
NotNullWhen
(true)] SyntaxNode? node)
1547
public bool IsMemberAccessExpression([
NotNullWhen
(true)] SyntaxNode? node)
1550
public bool IsSimpleName([
NotNullWhen
(true)] SyntaxNode? node)
1553
public bool IsNamedMemberInitializer([
NotNullWhen
(true)] SyntaxNode? node)
1556
public bool IsElementAccessInitializer([
NotNullWhen
(true)] SyntaxNode? node)
1559
public bool IsObjectMemberInitializer([
NotNullWhen
(true)] SyntaxNode? node)
1562
public bool IsObjectCollectionInitializer([
NotNullWhen
(true)] SyntaxNode? node)
CSharpTypeStyleHelper.State.cs (1)
103
private static bool IsMadeOfSpecialTypes([
NotNullWhen
(true)] ITypeSymbol? type)
CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (2)
43
protected override bool IsNullCheck(ExpressionSyntax condition, [
NotNullWhen
(true)] out ExpressionSyntax? checkedExpression)
60
protected override bool TryGetEmbeddedStatement(IfStatementSyntax ifStatement, [
NotNullWhen
(true)] out StatementSyntax? whenTrueStatement)
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (3)
105
[
NotNullWhen
(true)] out StatementSyntax? whenTrue,
106
[
NotNullWhen
(true)] out AssignmentExpressionSyntax? assignment)
188
[
NotNullWhen
(true)] out ExpressionSyntax? testedExpression)
CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
90
[
NotNullWhen
(true)] out INamedTypeSymbol? tupleType,
120
[
NotNullWhen
(true)] out INamedTypeSymbol? tupleType,
139
[
NotNullWhen
(true)] out INamedTypeSymbol? tupleType,
CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
43
public static bool TryCreate(Compilation compilation, [
NotNullWhen
(true)] out InfoCache? infoCache)
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (4)
167
[
NotNullWhen
(true)] out LocalDeclarationStatementSyntax? localDeclaration)
183
[
NotNullWhen
(true)] out LocalDeclarationStatementSyntax? localDeclaration)
287
[
NotNullWhen
(true)] out LocalDeclarationStatementSyntax? localDeclaration)
314
[
NotNullWhen
(true)] out LocalDeclarationStatementSyntax? localDeclaration)
CSharpUseNullPropagationDiagnosticAnalyzer.cs (3)
44
[
NotNullWhen
(true)] out ExpressionSyntax? conditionPartToCheck, out bool isEquals)
71
[
NotNullWhen
(true)] out ExpressionSyntax? condition,
72
[
NotNullWhen
(true)] out StatementSyntax? trueStatement)
CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
55
public static bool TryCreate(Compilation compilation, [
NotNullWhen
(true)] out InfoCache? infoCache)
CSharpUseTupleSwapDiagnosticAnalyzer.cs (3)
131
[
NotNullWhen
(true)] StatementSyntax? assignmentStatement,
132
[
NotNullWhen
(true)] out ExpressionSyntax? left,
133
[
NotNullWhen
(true)] out ExpressionSyntax? right)
ElasticTriviaFormattingRule.cs (1)
239
private static bool TryGetOperationBeforeDocComment(SyntaxToken currentToken, [
NotNullWhen
(true)] out AdjustNewLinesOperation? operation)
ExpressionSyntaxExtensions.cs (21)
38
public static bool IsSimpleMemberAccessExpressionName([
NotNullWhen
(true)] this ExpressionSyntax? expression)
41
public static bool IsAnyMemberAccessExpressionName([
NotNullWhen
(true)] this ExpressionSyntax? expression)
50
public static bool IsMemberBindingExpressionName([
NotNullWhen
(true)] this ExpressionSyntax? expression)
54
public static bool IsRightSideOfQualifiedName([
NotNullWhen
(true)] this ExpressionSyntax? expression)
63
public static bool IsRightSideOfDotOrArrow([
NotNullWhen
(true)] this ExpressionSyntax? name)
69
public static bool IsRightSideOfDotOrArrowOrColonColon([
NotNullWhen
(true)] this ExpressionSyntax name)
79
public static bool IsLeftSideOfDot([
NotNullWhen
(true)] this ExpressionSyntax? expression)
99
public static bool IsLeftSideOfExplicitInterfaceSpecifier([
NotNullWhen
(true)] this NameSyntax? name)
106
public static bool TryGetNameParts(this ExpressionSyntax expression, [
NotNullWhen
(true)] out IList<string>? parts)
163
public static bool IsInConstantContext([
NotNullWhen
(true)] this ExpressionSyntax? expression)
190
public static bool IsInOutContext([
NotNullWhen
(true)] this ExpressionSyntax? expression)
194
public static bool IsInRefContext([
NotNullWhen
(true)] this ExpressionSyntax? expression)
201
public static bool IsInRefContext([
NotNullWhen
(true)] this ExpressionSyntax? expression, [
NotNullWhen
(true)] out SyntaxNode? refParent)
217
public static bool IsInInContext([
NotNullWhen
(true)] this ExpressionSyntax? expression)
233
public static bool IsOnlyWrittenTo([
NotNullWhen
(true)] this ExpressionSyntax? expression)
320
[
NotNullWhen
(true)] this ExpressionSyntax? expression,
383
public static bool IsAttributeNamedArgumentIdentifier([
NotNullWhen
(true)] this ExpressionSyntax? expression)
410
[
NotNullWhen
(true)] this ExpressionSyntax? expression, SemanticModel semanticModel, CancellationToken cancellationToken)
440
[
NotNullWhen
(true)] this ExpressionSyntax? expression, SemanticModel semanticModel, CancellationToken cancellationToken)
873
[
NotNullWhen
(true)] out StatementSyntax? statement)
FormattingHelpers.cs (4)
197
public static bool IsEmbeddedStatement([
NotNullWhen
(true)] this SyntaxNode? node)
362
public static bool IsEmbeddedStatementOwnerWithCloseParen([
NotNullWhen
(true)] this SyntaxNode? node)
387
public static bool IsInitializerForObjectOrAnonymousObjectCreationExpression([
NotNullWhen
(true)] this SyntaxNode? node)
423
public static bool IsInitializerForArrayOrCollectionCreationExpression([
NotNullWhen
(true)] this SyntaxNode? node)
Helpers.cs (1)
51
public static bool IsSubtraction(IOperation operation, [
NotNullWhen
(true)] out IBinaryOperation? subtraction)
MakeLocalFunctionStaticHelper.cs (1)
17
private static bool TryGetDataFlowAnalysis(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, [
NotNullWhen
(returnValue: true)] out DataFlowAnalysis? dataFlow)
SimplifyPropertyPatternHelpers.cs (3)
15
[
NotNullWhen
(true)] out SubpatternSyntax? innerSubpattern,
16
[
NotNullWhen
(true)] out BaseExpressionColonSyntax? outerExpressionColon)
50
public static bool IsMergable([
NotNullWhen
(true)] ExpressionSyntax? expression)
SyntaxNodeExtensions.cs (18)
30
public static bool IsKind<TNode>([
NotNullWhen
(returnValue: true)] this SyntaxNode? node, SyntaxKind kind, [
NotNullWhen
(returnValue: true)] out TNode? result)
43
public static bool IsParentKind([
NotNullWhen
(returnValue: true)] this SyntaxNode? node, SyntaxKind kind)
46
public static bool IsParentKind<TNode>([
NotNullWhen
(returnValue: true)] this SyntaxNode? node, SyntaxKind kind, [
NotNullWhen
(returnValue: true)] out TNode? result)
89
public static bool IsAnyArgumentList([
NotNullWhen
(returnValue: true)] this SyntaxNode? node)
128
public static bool IsEmbeddedStatementOwner([
NotNullWhen
(returnValue: true)] this SyntaxNode? node)
306
public static bool IsAsyncSupportingFunctionSyntax([
NotNullWhen
(returnValue: true)] this SyntaxNode? node)
313
public static bool IsAnyLambda([
NotNullWhen
(returnValue: true)] this SyntaxNode? node)
320
public static bool IsAnyLambdaOrAnonymousMethod([
NotNullWhen
(returnValue: true)] this SyntaxNode? node)
347
public static bool IsLeftSideOfAssignExpression([
NotNullWhen
(returnValue: true)] this SyntaxNode? node)
351
public static bool IsLeftSideOfAnyAssignExpression([
NotNullWhen
(true)] this SyntaxNode? node)
358
public static bool IsRightSideOfAnyAssignExpression([
NotNullWhen
(true)] this SyntaxNode? node)
365
public static bool IsLeftSideOfCompoundAssignExpression([
NotNullWhen
(true)] this SyntaxNode? node)
970
[
NotNullWhen
(returnValue: true)] this SyntaxNode? node,
972
[
NotNullWhen
(returnValue: true)] INamedTypeSymbol? expressionTypeOpt,
1023
[
NotNullWhen
(returnValue: true)] this SyntaxNode? node,
1024
[
NotNullWhen
(returnValue: true)] out SyntaxNode? deconstructionLeft)
SyntaxTokenExtensions.cs (1)
25
public static bool IsLastTokenOfNode<T>(this SyntaxToken token, [
NotNullWhen
(true)] out T? node) where T : SyntaxNode
UseExpressionBodyForLambdaHelpers.cs (1)
110
[
NotNullWhen
(true)] out ExpressionSyntax? expression)
UseExpressionBodyHelper.cs (1)
29
public abstract bool CanOfferUseBlockBody(CodeStyleOption2<ExpressionBodyPreference> preference, SyntaxNode declaration, bool forAnalyzer, out bool fixesError, [
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? expressionBody);
UseExpressionBodyHelper`1.cs (5)
72
public override bool CanOfferUseBlockBody(CodeStyleOption2<ExpressionBodyPreference> preference, SyntaxNode declaration, bool forAnalyzer, out bool fixesError, [
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? expressionBody)
118
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? expressionWhenOnSingleLine,
128
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? expressionWhenOnSingleLine, out SyntaxToken semicolonWhenOnSingleLine)
148
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? arrowExpression,
173
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? expressionBody)
UsePatternMatchingHelpers.cs (1)
16
[
NotNullWhen
(true)] out ConditionalAccessExpressionSyntax? conditionalAccessExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (28)
ConvertToRecordHelpers.cs (5)
568
[
NotNullWhen
(true)] out ISymbol? assignedVariable)
786
[
NotNullWhen
(true)] out ISymbol? boundVariable,
832
bool TryGetBoundVariableForIsPattern(IPatternOperation isPattern, [
NotNullWhen
(true)] out ISymbol? boundVariable)
959
[
NotNullWhen
(true)] out ISymbol? otherC,
960
[
NotNullWhen
(true)] out IEnumerable<IOperation>? statementsToCheck)
CSharpAddYieldCodeFixProvider.cs (3)
92
SemanticModel model, ExpressionSyntax? expression, [
NotNullWhen
(true)] out ITypeSymbol? returnExpressionType)
107
[
NotNullWhen
(true)] out ITypeSymbol? methodReturnType)
214
SyntaxNode root, TextSpan span, [
NotNullWhen
(true)] out SyntaxNode? node)
CSharpChangeToIEnumerableCodeFixProvider.cs (2)
120
[
NotNullWhen
(true)] out INamedTypeSymbol? ienumerableSymbol,
121
[
NotNullWhen
(true)] out INamedTypeSymbol? ienumerableGenericSymbol)
CSharpDisambiguateSameVariableCodeFixProvider.cs (3)
58
[
NotNullWhen
(true)] out SimpleNameSyntax? leftName,
59
[
NotNullWhen
(true)] out ISymbol? matchingMember,
60
[
NotNullWhen
(true)] out string? title)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
39
[
NotNullWhen
(true)] out TypeConstraintSyntax? constraint,
CSharpMakeMemberStaticCodeFixProvider.cs (1)
31
protected override bool TryGetMemberDeclaration(SyntaxNode node, [
NotNullWhen
(true)] out SyntaxNode? memberDeclaration)
CSharpMakeTypeAbstractCodeFixProvider.cs (1)
29
protected override bool IsValidRefactoringContext(SyntaxNode? node, [
NotNullWhen
(true)] out TypeDeclarationSyntax? typeDeclaration)
CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
36
Diagnostic diagnostic, CancellationToken cancellationToken, [
NotNullWhen
(true)] out RecordDeclarationSyntax? recordDeclaration)
CSharpUseNullPropagationCodeFixProvider.cs (1)
36
protected override bool TryGetBlock(SyntaxNode? statement, [
NotNullWhen
(true)] out StatementSyntax? block)
DocumentationCommentExtensions.cs (1)
13
public static bool IsMultilineDocComment([
NotNullWhen
(true)] this DocumentationCommentTriviaSyntax? documentationComment)
ITypeSymbolExtensions.cs (1)
151
public static bool TryGetRecordPrimaryConstructor(this INamedTypeSymbol typeSymbol, [
NotNullWhen
(true)] out IMethodSymbol? primaryConstructor)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
113
public static bool TryCreateNativeIntegerType(INamedTypeSymbol symbol, [
NotNullWhen
(true)] out TypeSyntax? syntax)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
11
public static bool IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList([
NotNullWhen
(true)] this SyntaxNode? node, bool includeOperators)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
610
private static bool IsGenericInterfaceOrDelegateTypeParameterList([
NotNullWhen
(true)] SyntaxNode? node)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
684
public static bool IsPartialTypeDeclarationNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, [
NotNullWhen
(true)] out TypeDeclarationSyntax? declarationSyntax)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
15
public static bool TryParseGenericName(this SyntaxToken genericIdentifier, CancellationToken cancellationToken, [
NotNullWhen
(true)] out GenericNameSyntax? genericName)
PropertyGenerator.cs (2)
155
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? arrowExpression, out SyntaxToken semicolonToken)
234
[
NotNullWhen
(true)] out ArrowExpressionClauseSyntax? arrowExpression, out SyntaxToken semicolonToken)
TypeSyntaxExtensions.cs (1)
16
public static bool IsPotentialTypeName([
NotNullWhen
(true)] this TypeSyntax? typeSyntax, SemanticModel? semanticModelOpt, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
VisualBasicSyntaxFacts.vb (1)
1731
Public Function IsBaseNamespaceDeclaration(<
NotNullWhen
(True)> node As SyntaxNode) As Boolean Implements ISyntaxFacts.IsBaseNamespaceDeclaration
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (2)
40
Protected Overrides Function IsNullCheck(condition As ExpressionSyntax, <
NotNullWhen
(True)> ByRef checkedExpression As ExpressionSyntax) As Boolean
58
Protected Overrides Function TryGetEmbeddedStatement(ifBlock As MultiLineIfBlockSyntax, <
NotNullWhen
(True)> ByRef whenTrueStatement As StatementSyntax) As Boolean