39 references to DefaultExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
694case SyntaxKind.DefaultExpression:
Binder\EarlyWellKnownAttributeBinder.cs (1)
112case SyntaxKind.DefaultExpression:
Parser\LanguageParser.cs (1)
10164case SyntaxKind.DefaultExpression:
Syntax\SyntaxFacts.cs (1)
147case DefaultExpression:
Syntax\SyntaxKindFacts.cs (1)
526return SyntaxKind.DefaultExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
32=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.DefaultExpression);
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
336SyntaxKind.DefaultExpression)
ExpressionSyntaxExtensions.cs (1)
724case SyntaxKind.DefaultExpression:
FormattingHelpers.cs (1)
247case SyntaxKind.DefaultExpression:
SpacingFormattingRule.cs (1)
606=> (syntaxKind is SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression);
SpeculationAnalyzer.cs (1)
516else if (currentOriginalNode.Kind() == SyntaxKind.DefaultExpression)
TypeStyleHelper.cs (1)
66if (initializerExpression.IsKind(SyntaxKind.DefaultExpression))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpDeclareAsNullableCodeFixProvider.cs (1)
337SyntaxKind.DefaultExpression or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
907if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.DefaultExpression)) 2399if (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)
CSharpDeclareAsNullableCodeFixProvider.cs (1)
337SyntaxKind.DefaultExpression or
CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
32=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.DefaultExpression);
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
336SyntaxKind.DefaultExpression)
EditAndContinue\SyntaxComparer.cs (1)
528case SyntaxKind.DefaultExpression:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\LambdaTests.cs (1)
6474.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.Attribute) || a.IsKind(SyntaxKind.DefaultExpression) || a.IsKind(SyntaxKind.InvocationExpression)))
Semantics\LocalFunctionTests.cs (2)
7559.Where(i => i.Ancestors().Any(a => a.Kind() is SyntaxKind.Attribute or SyntaxKind.TypeConstraint or SyntaxKind.DefaultExpression or SyntaxKind.InvocationExpression or SyntaxKind.EqualsValueClause)) 8604.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 (8)
Parsing\AwaitParsingTests.cs (2)
535N(SyntaxKind.DefaultExpression); 1447N(SyntaxKind.DefaultExpression);
Parsing\ExpressionParsingTests.cs (1)
853case SyntaxKind.DefaultExpression:
Parsing\StatementAttributeParsingTests.cs (1)
4654N(SyntaxKind.DefaultExpression);
Parsing\SwitchExpressionParsingTests.cs (4)
748N(SyntaxKind.DefaultExpression); 818N(SyntaxKind.DefaultExpression); 1053N(SyntaxKind.DefaultExpression); 1123N(SyntaxKind.DefaultExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
FormattingHelpers.cs (1)
247case SyntaxKind.DefaultExpression:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
724case SyntaxKind.DefaultExpression:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
907if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.DefaultExpression)) 2399if (token.Parent is (kind: SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression))
SpacingFormattingRule.cs (1)
606=> (syntaxKind is SyntaxKind.TypeOfExpression or SyntaxKind.DefaultExpression or SyntaxKind.SizeOfExpression);
SpeculationAnalyzer.cs (1)
516else if (currentOriginalNode.Kind() == SyntaxKind.DefaultExpression)
TypeStyleHelper.cs (1)
66if (initializerExpression.IsKind(SyntaxKind.DefaultExpression))