78 references to ConditionalAccessExpression
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
522if (invocationExpression.Parent!.IsKind(SyntaxKind.ConditionalAccessExpression))
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_AnonymousTypes.cs (1)
160case SyntaxKind.ConditionalAccessExpression:
Binder\Binder_Expressions.cs (1)
655case SyntaxKind.ConditionalAccessExpression:
Parser\LanguageParser.cs (1)
10844case SyntaxKind.ConditionalAccessExpression:
Syntax\SyntaxFactory.cs (1)
2257if (currentNode.Kind() == SyntaxKind.ConditionalAccessExpression)
Syntax\SyntaxFacts.cs (1)
422case ConditionalAccessExpression:
Syntax\SyntaxNodeExtensions.cs (1)
207case SyntaxKind.ConditionalAccessExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (5)
516if (expression.IsKind(SyntaxKind.ConditionalAccessExpression)) 518return expression is { Parent.RawKind: not (int)SyntaxKind.ConditionalAccessExpression }; 553case SyntaxKind.ConditionalAccessExpression: 556!parentConditionalAccessExpression.Parent.IsKind(SyntaxKind.ConditionalAccessExpression); 699case SyntaxKind.ConditionalAccessExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
311if (expression.IsKind(SyntaxKind.ConditionalAccessExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
457if (currentToken.IsKind(SyntaxKind.QuestionToken) && currentToken.Parent.IsKind(SyntaxKind.ConditionalAccessExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
98public int ConditionalAccessExpression => (int)SyntaxKind.ConditionalAccessExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
319else if (currentOriginalNode.Kind() == SyntaxKind.ConditionalAccessExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
67if (node.IsKind(SyntaxKind.ConditionalAccessExpression)) 322SyntaxKind.ConditionalAccessExpression or
Microsoft.CodeAnalysis.CSharp.Features (3)
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
174if (expression.IsParentKind(SyntaxKind.ConditionalAccessExpression))
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
67if (node.IsKind(SyntaxKind.ConditionalAccessExpression)) 322SyntaxKind.ConditionalAccessExpression or
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (47)
Parsing\CollectionExpressionParsingTests.cs (24)
711N(SyntaxKind.ConditionalAccessExpression); 771N(SyntaxKind.ConditionalAccessExpression); 2417N(SyntaxKind.ConditionalAccessExpression); 2478N(SyntaxKind.ConditionalAccessExpression); 2611N(SyntaxKind.ConditionalAccessExpression); 2655N(SyntaxKind.ConditionalAccessExpression); 2818N(SyntaxKind.ConditionalAccessExpression); 2862N(SyntaxKind.ConditionalAccessExpression); 3035N(SyntaxKind.ConditionalAccessExpression); 3133N(SyntaxKind.ConditionalAccessExpression); 3226N(SyntaxKind.ConditionalAccessExpression); 3300N(SyntaxKind.ConditionalAccessExpression); 3331N(SyntaxKind.ConditionalAccessExpression); 3382N(SyntaxKind.ConditionalAccessExpression); 3420N(SyntaxKind.ConditionalAccessExpression); 3471N(SyntaxKind.ConditionalAccessExpression); 3509N(SyntaxKind.ConditionalAccessExpression); 3560N(SyntaxKind.ConditionalAccessExpression); 9040N(SyntaxKind.ConditionalAccessExpression); 9122N(SyntaxKind.ConditionalAccessExpression); 9277N(SyntaxKind.ConditionalAccessExpression); 9330N(SyntaxKind.ConditionalAccessExpression); 10157N(SyntaxKind.ConditionalAccessExpression); 10207N(SyntaxKind.ConditionalAccessExpression);
Parsing\DeconstructionTests.cs (1)
3309N(SyntaxKind.ConditionalAccessExpression);
Parsing\ExpressionParsingTests.cs (3)
774Assert.Equal(SyntaxKind.ConditionalAccessExpression, cons.Kind()); 780Assert.Equal(SyntaxKind.ConditionalAccessExpression, cons.Kind()); 786Assert.Equal(SyntaxKind.ConditionalAccessExpression, cons.Kind());
Parsing\FieldKeywordParsingTests.cs (1)
1167N(SyntaxKind.ConditionalAccessExpression);
Parsing\PatternParsingTests2.cs (1)
299N(SyntaxKind.ConditionalAccessExpression);
Parsing\StatementAttributeParsingTests.cs (2)
4566N(SyntaxKind.ConditionalAccessExpression); 4911N(SyntaxKind.ConditionalAccessExpression);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (15)
229N(SyntaxKind.ConditionalAccessExpression); 264N(SyntaxKind.ConditionalAccessExpression); 316N(SyntaxKind.ConditionalAccessExpression); 323N(SyntaxKind.ConditionalAccessExpression); 383N(SyntaxKind.ConditionalAccessExpression); 454N(SyntaxKind.ConditionalAccessExpression); 528N(SyntaxKind.ConditionalAccessExpression); 599N(SyntaxKind.ConditionalAccessExpression); 657N(SyntaxKind.ConditionalAccessExpression); 723N(SyntaxKind.ConditionalAccessExpression); 767N(SyntaxKind.ConditionalAccessExpression); 825N(SyntaxKind.ConditionalAccessExpression); 861N(SyntaxKind.ConditionalAccessExpression); 900N(SyntaxKind.ConditionalAccessExpression); 951N(SyntaxKind.ConditionalAccessExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\SyntaxClassification\SyntaxTokenClassifier.cs (1)
78if (identifier.Parent.IsParentKind(SyntaxKind.ConditionalAccessExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (5)
516if (expression.IsKind(SyntaxKind.ConditionalAccessExpression)) 518return expression is { Parent.RawKind: not (int)SyntaxKind.ConditionalAccessExpression }; 553case SyntaxKind.ConditionalAccessExpression: 556!parentConditionalAccessExpression.Parent.IsKind(SyntaxKind.ConditionalAccessExpression); 699case SyntaxKind.ConditionalAccessExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
311if (expression.IsKind(SyntaxKind.ConditionalAccessExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
457if (currentToken.IsKind(SyntaxKind.QuestionToken) && currentToken.Parent.IsKind(SyntaxKind.ConditionalAccessExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
98public int ConditionalAccessExpression => (int)SyntaxKind.ConditionalAccessExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
319else if (currentOriginalNode.Kind() == SyntaxKind.ConditionalAccessExpression)