73 references to DefaultLiteralExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
681case SyntaxKind.DefaultLiteralExpression:
Binder\Binder_Patterns.cs (1)
475case SyntaxKind.DefaultLiteralExpression:
Parser\LanguageParser.cs (2)
10165case SyntaxKind.DefaultLiteralExpression: 11223return _syntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression, keyword);
Syntax\LiteralExpressionSyntax.cs (1)
27SyntaxKind.DefaultLiteralExpression => SyntaxKind.DefaultKeyword,
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CastSimplifier.cs (3)
179var isDefaultLiteralCast = castedExpressionNode.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression); 705if (originalConditionalExpression.WhenTrue.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression) || 706originalConditionalExpression.WhenFalse.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression))
CSharpSyntaxKinds.cs (1)
73public int DefaultLiteralExpression => (int)SyntaxKind.DefaultLiteralExpression;
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
335SyntaxKind.DefaultLiteralExpression or
DefaultExpressionSyntaxExtensions.cs (1)
16SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression);
SpeculationAnalyzer.cs (2)
290if (expression.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression)) 454if (previousReplacedExpression.WalkDownParentheses().Kind() is SyntaxKind.NullLiteralExpression or SyntaxKind.DefaultLiteralExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
ConvertToRecordHelpers.cs (1)
413: SyntaxKind.DefaultLiteralExpression);
CSharpDeclareAsNullableCodeFixProvider.cs (1)
338SyntaxKind.DefaultLiteralExpression or
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
50token.Parent is LiteralExpressionSyntax(SyntaxKind.DefaultLiteralExpression) defaultLiteral)
CSharpUseDefaultLiteralCodeFixProvider.cs (1)
65SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression).WithTriviaFrom(defaultExpression)),
CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
123if (expr.IsKind(SyntaxKind.DefaultLiteralExpression))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenFunctionPointersTests.cs (1)
4913.Where(l => l.IsKind(SyntaxKind.DefaultLiteralExpression))
CodeGen\CodeGenTupleEqualityTests.cs (5)
1077.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1111.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1143.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1174.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1233.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression);
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertToRecordHelpers.cs (1)
413: SyntaxKind.DefaultLiteralExpression);
CSharpDeclareAsNullableCodeFixProvider.cs (1)
338SyntaxKind.DefaultLiteralExpression or
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
50token.Parent is LiteralExpressionSyntax(SyntaxKind.DefaultLiteralExpression) defaultLiteral)
CSharpUseDefaultLiteralCodeFixProvider.cs (1)
65SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression).WithTriviaFrom(defaultExpression)),
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
335SyntaxKind.DefaultLiteralExpression or
CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
123if (expr.IsKind(SyntaxKind.DefaultLiteralExpression))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullCoalesceAssignmentTests.cs (1)
184var defaultLiteral = syntaxRoot.DescendantNodes().OfType<LiteralExpressionSyntax>().Where(expr => expr.IsKind(SyntaxKind.DefaultLiteralExpression)).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
Parsing\DeclarationScopeParsingTests.cs (7)
262N(SyntaxKind.DefaultLiteralExpression); 335N(SyntaxKind.DefaultLiteralExpression); 364N(SyntaxKind.DefaultLiteralExpression); 456N(SyntaxKind.DefaultLiteralExpression); 2545N(SyntaxKind.DefaultLiteralExpression); 9531N(SyntaxKind.DefaultLiteralExpression); 13547N(SyntaxKind.DefaultLiteralExpression);
Parsing\ExpressionParsingTests.cs (1)
4764Assert.Equal(SyntaxKind.DefaultLiteralExpression, expr.Kind());
Parsing\LambdaReturnTypeParsingTests.cs (20)
66N(SyntaxKind.DefaultLiteralExpression); 195N(SyntaxKind.DefaultLiteralExpression); 478N(SyntaxKind.DefaultLiteralExpression); 508N(SyntaxKind.DefaultLiteralExpression); 538N(SyntaxKind.DefaultLiteralExpression); 582N(SyntaxKind.DefaultLiteralExpression); 656N(SyntaxKind.DefaultLiteralExpression); 2258N(SyntaxKind.DefaultLiteralExpression); 4892N(SyntaxKind.DefaultLiteralExpression); 4995N(SyntaxKind.DefaultLiteralExpression); 5035N(SyntaxKind.DefaultLiteralExpression); 5071N(SyntaxKind.DefaultLiteralExpression); 5145N(SyntaxKind.DefaultLiteralExpression); 5248N(SyntaxKind.DefaultLiteralExpression); 5386N(SyntaxKind.DefaultLiteralExpression); 5481N(SyntaxKind.DefaultLiteralExpression); 5536N(SyntaxKind.DefaultLiteralExpression); 5637N(SyntaxKind.DefaultLiteralExpression); 5703N(SyntaxKind.DefaultLiteralExpression); 5760N(SyntaxKind.DefaultLiteralExpression);
Parsing\StatementAttributeParsingTests.cs (2)
2598N(SyntaxKind.DefaultLiteralExpression); 4732N(SyntaxKind.DefaultLiteralExpression);
Parsing\SwitchExpressionParsingTests.cs (4)
626N(SyntaxKind.DefaultLiteralExpression); 690N(SyntaxKind.DefaultLiteralExpression); 900N(SyntaxKind.DefaultLiteralExpression); 993N(SyntaxKind.DefaultLiteralExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CastSimplifier.cs (3)
179var isDefaultLiteralCast = castedExpressionNode.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression); 705if (originalConditionalExpression.WhenTrue.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression) || 706originalConditionalExpression.WhenFalse.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression))
CSharpSyntaxKinds.cs (1)
73public int DefaultLiteralExpression => (int)SyntaxKind.DefaultLiteralExpression;
DefaultExpressionSyntaxExtensions.cs (1)
16SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression);
Simplification\Reducers\CSharpDefaultExpressionReducer.Rewriter.cs (1)
40return SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression)
SpeculationAnalyzer.cs (2)
290if (expression.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression)) 454if (previousReplacedExpression.WalkDownParentheses().Kind() is SyntaxKind.NullLiteralExpression or SyntaxKind.DefaultLiteralExpression)