43 references to DefaultExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
726case SyntaxKind.DefaultExpression:
Binder\EarlyWellKnownAttributeBinder.cs (1)
112case SyntaxKind.DefaultExpression:
Parser\LanguageParser.cs (1)
10781case SyntaxKind.DefaultExpression:
Syntax\SyntaxFacts.cs (1)
147case DefaultExpression:
Syntax\SyntaxKindFacts.cs (1)
554return SyntaxKind.DefaultExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
32=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.DefaultExpression);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
371SyntaxKind.DefaultExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
66if (initializerExpression.IsKind(SyntaxKind.DefaultExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
706case SyntaxKind.DefaultExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
247case SyntaxKind.DefaultExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
609=> (syntaxKind is SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
529else if (currentOriginalNode.Kind() == SyntaxKind.DefaultExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
319SyntaxKind.DefaultExpression or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
907if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.DefaultExpression)) 2402if (token.Parent is (kind: SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
197SyntaxKind.DefaultExpression or
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\SyntaxComparer.cs (1)
529case SyntaxKind.DefaultExpression:
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
32=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.DefaultExpression);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
371SyntaxKind.DefaultExpression)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
319SyntaxKind.DefaultExpression or
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\LambdaTests.cs (1)
6517.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.Attribute) || a.IsKind(SyntaxKind.DefaultExpression) || a.IsKind(SyntaxKind.InvocationExpression)))
Semantics\LocalFunctionTests.cs (2)
7641.Where(i => i.Ancestors().Any(a => a.Kind() is SyntaxKind.Attribute or SyntaxKind.TypeConstraint or SyntaxKind.DefaultExpression or SyntaxKind.InvocationExpression or SyntaxKind.EqualsValueClause)) 8686.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.Attribute) || a.IsKind(SyntaxKind.TypeConstraint) || a.IsKind(SyntaxKind.DefaultExpression) || a.IsKind(SyntaxKind.InvocationExpression)))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\GetSemanticInfoTests.cs (1)
2227Assert.Equal(SyntaxKind.DefaultExpression, exprSyntaxToBind.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Parsing\AwaitParsingTests.cs (2)
536N(SyntaxKind.DefaultExpression); 2140N(SyntaxKind.DefaultExpression);
Parsing\CollectionExpressionParsingTests.cs (1)
7251N(SyntaxKind.DefaultExpression);
Parsing\ExpressionParsingTests.cs (1)
853case SyntaxKind.DefaultExpression:
Parsing\MemberDeclarationParsingTests.cs (3)
18240N(SyntaxKind.DefaultExpression); 18341N(SyntaxKind.DefaultExpression); 18439N(SyntaxKind.DefaultExpression);
Parsing\StatementAttributeParsingTests.cs (1)
4655N(SyntaxKind.DefaultExpression);
Parsing\SwitchExpressionParsingTests.cs (4)
2465N(SyntaxKind.DefaultExpression); 2535N(SyntaxKind.DefaultExpression); 2770N(SyntaxKind.DefaultExpression); 2838N(SyntaxKind.DefaultExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
66if (initializerExpression.IsKind(SyntaxKind.DefaultExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
706case SyntaxKind.DefaultExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
247case SyntaxKind.DefaultExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
609=> (syntaxKind is SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
529else if (currentOriginalNode.Kind() == SyntaxKind.DefaultExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
907if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.DefaultExpression)) 2402if (token.Parent is (kind: SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression))