172 references to TupleExpression
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Deconstruct.cs (2)
303
var elementSyntax = syntax.Kind() == SyntaxKind.
TupleExpression
? ((TupleExpressionSyntax)syntax).Arguments[i] : syntax;
771
case SyntaxKind.
TupleExpression
:
Binder\Binder_Expressions.cs (1)
807
case SyntaxKind.
TupleExpression
:
Binder\Binder_Statements.cs (1)
1410
if (node.Left.Kind() == SyntaxKind.
TupleExpression
|| node.Left.Kind() == SyntaxKind.DeclarationExpression)
Binder\ExpressionVariableFinder.cs (1)
471
case SyntaxKind.
TupleExpression
:
Binder\ForEachLoopBinder.cs (1)
110
case SyntaxKind.
TupleExpression
:
Compilation\CSharpSemanticModel.cs (2)
4487
if (parent3.IsKind(SyntaxKind.
TupleExpression
))
5098
case SyntaxKind.
TupleExpression
:
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
554
loweredInput.Syntax.Kind() == SyntaxKind.
TupleExpression
&&
Parser\LanguageParser.cs (3)
9470
case SyntaxKind.
TupleExpression
:
9711
else if (expression.Kind == SyntaxKind.
TupleExpression
)
10809
case SyntaxKind.
TupleExpression
:
Syntax\SyntaxExtensions.cs (4)
219
case SyntaxKind.
TupleExpression
:
346
if (kind != SyntaxKind.
TupleExpression
&& kind != SyntaxKind.DeclarationExpression && kind != SyntaxKind.IdentifierName)
353
Debug.Assert(expr.Kind() == SyntaxKind.
TupleExpression
|| expr.Kind() == SyntaxKind.DeclarationExpression || expr.Kind() == SyntaxKind.IdentifierName);
360
if (parent.Parent?.Kind() == SyntaxKind.
TupleExpression
)
Syntax\SyntaxFacts.cs (2)
306
if (parent3.IsKind(SyntaxKind.
TupleExpression
))
325
case
TupleExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AssignmentExpressionSyntaxExtensions.cs (1)
18
(left.Kind() == SyntaxKind.
TupleExpression
|| left.Kind() == SyntaxKind.DeclarationExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
291
if (parent.Parent?.Kind() == SyntaxKind.
TupleExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
111
if (expression.IsKind(SyntaxKind.
TupleExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
539
currentToken.Parent.IsKind(SyntaxKind.
TupleExpression
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
118
public int TupleExpression => (int)SyntaxKind.
TupleExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (1)
16
if (node.NameColon == null || !node.Parent.IsKind(SyntaxKind.
TupleExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
802
if (newExpression.IsKind(SyntaxKind.
TupleExpression
) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (6)
1247
if (token.Parent is (kind: SyntaxKind.ParenthesizedExpression or SyntaxKind.
TupleExpression
or SyntaxKind.CastExpression))
1324
SyntaxKind.
TupleExpression
or
1575
SyntaxKind.
TupleExpression
or
1639
if (leftToken.Kind() is SyntaxKind.OpenParenToken or SyntaxKind.CommaToken && leftToken.Parent.IsKind(SyntaxKind.
TupleExpression
))
1679
if (node.Parent.IsKind(SyntaxKind.Argument) && node.Parent.Parent.IsKind(SyntaxKind.
TupleExpression
))
2423
token.Parent is (kind: SyntaxKind.ArgumentList or SyntaxKind.BracketedArgumentList or SyntaxKind.
TupleExpression
))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
201
SyntaxKind.
TupleExpression
or
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
443
if (!parent.IsKind(SyntaxKind.
TupleExpression
))
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
120
if (token.GetAncestor(node => node.IsKind(SyntaxKind.
TupleExpression
)) != null)
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
77
if (token.Parent is (kind: SyntaxKind.ParenthesizedExpression or SyntaxKind.
TupleExpression
or SyntaxKind.CastExpression))
Debugging\CSharpProximityExpressionsService.RelevantExpressionsCollector.cs (1)
114
case SyntaxKind.
TupleExpression
:
EditAndContinue\SyntaxComparer.cs (1)
1328
case SyntaxKind.
TupleExpression
:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (5)
4797
var decl = (TupleExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().Last(n => n.IsKind(SyntaxKind.
TupleExpression
));
4820
var decl = (TupleExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().Last(n => n.IsKind(SyntaxKind.
TupleExpression
));
4843
var decl = (TupleExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().Last(n => n.IsKind(SyntaxKind.
TupleExpression
));
4866
var decl = (TupleExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().Last(n => n.IsKind(SyntaxKind.
TupleExpression
));
4889
var decl = (TupleExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().Last(n => n.IsKind(SyntaxKind.
TupleExpression
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (114)
Parsing\CollectionExpressionParsingTests.cs (6)
4328
N(SyntaxKind.
TupleExpression
);
4352
N(SyntaxKind.
TupleExpression
);
4376
N(SyntaxKind.
TupleExpression
);
13352
N(SyntaxKind.
TupleExpression
);
13722
N(SyntaxKind.
TupleExpression
);
13933
N(SyntaxKind.
TupleExpression
);
Parsing\DeclarationExpressionTests.cs (12)
468
N(SyntaxKind.
TupleExpression
);
525
N(SyntaxKind.
TupleExpression
);
629
N(SyntaxKind.
TupleExpression
);
716
N(SyntaxKind.
TupleExpression
);
784
N(SyntaxKind.
TupleExpression
);
941
N(SyntaxKind.
TupleExpression
);
990
N(SyntaxKind.
TupleExpression
);
1037
N(SyntaxKind.
TupleExpression
);
1086
N(SyntaxKind.
TupleExpression
);
1140
N(SyntaxKind.
TupleExpression
);
1202
N(SyntaxKind.
TupleExpression
);
1253
N(SyntaxKind.
TupleExpression
);
Parsing\DeclarationScopeParsingTests.cs (23)
3498
N(SyntaxKind.
TupleExpression
);
3565
N(SyntaxKind.
TupleExpression
);
3788
N(SyntaxKind.
TupleExpression
);
4027
N(SyntaxKind.
TupleExpression
);
4167
N(SyntaxKind.
TupleExpression
);
4315
N(SyntaxKind.
TupleExpression
);
4465
N(SyntaxKind.
TupleExpression
);
4536
N(SyntaxKind.
TupleExpression
);
4611
N(SyntaxKind.
TupleExpression
);
4687
N(SyntaxKind.
TupleExpression
);
4762
N(SyntaxKind.
TupleExpression
);
4833
N(SyntaxKind.
TupleExpression
);
4904
N(SyntaxKind.
TupleExpression
);
4979
N(SyntaxKind.
TupleExpression
);
5055
N(SyntaxKind.
TupleExpression
);
5122
N(SyntaxKind.
TupleExpression
);
5439
N(SyntaxKind.
TupleExpression
);
5509
N(SyntaxKind.
TupleExpression
);
5562
N(SyntaxKind.
TupleExpression
);
5641
N(SyntaxKind.
TupleExpression
);
5712
N(SyntaxKind.
TupleExpression
);
5805
N(SyntaxKind.
TupleExpression
);
10832
N(SyntaxKind.
TupleExpression
);
Parsing\DeconstructionTests.cs (27)
393
N(SyntaxKind.
TupleExpression
);
475
N(SyntaxKind.
TupleExpression
);
626
N(SyntaxKind.
TupleExpression
);
639
N(SyntaxKind.
TupleExpression
);
718
N(SyntaxKind.
TupleExpression
);
808
N(SyntaxKind.
TupleExpression
);
813
N(SyntaxKind.
TupleExpression
);
1159
N(SyntaxKind.
TupleExpression
);
1260
N(SyntaxKind.
TupleExpression
);
1441
N(SyntaxKind.
TupleExpression
);
1589
N(SyntaxKind.
TupleExpression
);
1624
N(SyntaxKind.
TupleExpression
);
1666
N(SyntaxKind.
TupleExpression
);
1709
N(SyntaxKind.
TupleExpression
);
1789
N(SyntaxKind.
TupleExpression
);
1968
Assert.Equal(SyntaxKind.
TupleExpression
, paren.Expression.Kind());
1982
Assert.Equal(SyntaxKind.
TupleExpression
, paren.Expression.Kind());
1998
Assert.Equal(SyntaxKind.
TupleExpression
, paren3.Expression.Kind());
2496
N(SyntaxKind.
TupleExpression
);
3210
N(SyntaxKind.
TupleExpression
);
3264
N(SyntaxKind.
TupleExpression
);
3412
N(SyntaxKind.
TupleExpression
);
3459
N(SyntaxKind.
TupleExpression
);
3521
N(SyntaxKind.
TupleExpression
);
3583
N(SyntaxKind.
TupleExpression
);
3630
N(SyntaxKind.
TupleExpression
);
3683
N(SyntaxKind.
TupleExpression
);
Parsing\ExpressionParsingTests.cs (3)
2255
Assert.Equal(SyntaxKind.
TupleExpression
, expr.Kind());
2275
Assert.Equal(SyntaxKind.
TupleExpression
, expr.Kind());
2284
Assert.Equal(SyntaxKind.
TupleExpression
, tuple.Arguments[0].Expression.Kind());
Parsing\LambdaAttributeParsingTests.cs (2)
1791
N(SyntaxKind.
TupleExpression
);
1841
N(SyntaxKind.
TupleExpression
);
Parsing\LambdaParameterParsingTests.cs (7)
658
N(SyntaxKind.
TupleExpression
);
718
N(SyntaxKind.
TupleExpression
);
872
N(SyntaxKind.
TupleExpression
);
4496
N(SyntaxKind.
TupleExpression
);
4641
N(SyntaxKind.
TupleExpression
);
4907
N(SyntaxKind.
TupleExpression
);
5044
N(SyntaxKind.
TupleExpression
);
Parsing\LambdaReturnTypeParsingTests.cs (2)
1025
N(SyntaxKind.
TupleExpression
);
2271
N(SyntaxKind.
TupleExpression
);
Parsing\MemberDeclarationParsingTests.cs (5)
12607
N(SyntaxKind.
TupleExpression
);
16216
N(SyntaxKind.
TupleExpression
);
16369
N(SyntaxKind.
TupleExpression
);
16782
N(SyntaxKind.
TupleExpression
);
16963
N(SyntaxKind.
TupleExpression
);
Parsing\ParsingErrorRecoveryTests.cs (6)
6187
Assert.Equal(SyntaxKind.
TupleExpression
, ds.Declaration.Variables[0].Initializer.Value.Kind());
6218
Assert.Equal(SyntaxKind.
TupleExpression
, ds.Declaration.Variables[0].Initializer.Value.Kind());
6246
Assert.Equal(SyntaxKind.
TupleExpression
, ds.Declaration.Variables[0].Initializer.Value.Kind());
6294
Assert.Equal(SyntaxKind.
TupleExpression
, ds.Declaration.Variables[0].Initializer.Value.Kind());
6328
Assert.Equal(SyntaxKind.
TupleExpression
, ds.Declaration.Variables[0].Initializer.Value.Kind());
6360
Assert.Equal(SyntaxKind.
TupleExpression
, ds.Declaration.Variables[0].Initializer.Value.Kind());
Parsing\PatternParsingTests.cs (4)
1224
N(SyntaxKind.
TupleExpression
);
1299
N(SyntaxKind.
TupleExpression
);
1357
N(SyntaxKind.
TupleExpression
);
1400
N(SyntaxKind.
TupleExpression
);
Parsing\StatementParsingTests.cs (2)
3937
N(SyntaxKind.
TupleExpression
);
3978
N(SyntaxKind.
TupleExpression
);
Parsing\TypeArgumentListParsingTests.cs (4)
607
N(SyntaxKind.
TupleExpression
);
822
N(SyntaxKind.
TupleExpression
);
2650
N(SyntaxKind.
TupleExpression
);
2768
N(SyntaxKind.
TupleExpression
);
Parsing\UsingDirectiveParsingTests.cs (3)
569
N(SyntaxKind.
TupleExpression
);
1664
N(SyntaxKind.
TupleExpression
);
1770
N(SyntaxKind.
TupleExpression
);
Parsing\ValueTupleTests.cs (8)
77
N(SyntaxKind.
TupleExpression
);
643
N(SyntaxKind.
TupleExpression
);
648
N(SyntaxKind.
TupleExpression
);
735
N(SyntaxKind.
TupleExpression
);
796
N(SyntaxKind.
TupleExpression
);
857
N(SyntaxKind.
TupleExpression
);
910
N(SyntaxKind.
TupleExpression
);
974
N(SyntaxKind.
TupleExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Simplification\CSharpSimplificationService.cs (2)
205
Debug.Assert(tuple.IsKind(SyntaxKind.
TupleExpression
));
221
if (!grandParent.IsKind(SyntaxKind.
TupleExpression
))
Simplification\Reducers\CSharpInferredMemberNameReducer.Rewriter.cs (1)
56
if (node.Parent.IsKind(SyntaxKind.
TupleExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AssignmentExpressionSyntaxExtensions.cs (1)
18
(left.Kind() == SyntaxKind.
TupleExpression
|| left.Kind() == SyntaxKind.DeclarationExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
291
if (parent.Parent?.Kind() == SyntaxKind.
TupleExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
111
if (expression.IsKind(SyntaxKind.
TupleExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
539
currentToken.Parent.IsKind(SyntaxKind.
TupleExpression
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
118
public int TupleExpression => (int)SyntaxKind.
TupleExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (1)
16
if (node.NameColon == null || !node.Parent.IsKind(SyntaxKind.
TupleExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
802
if (newExpression.IsKind(SyntaxKind.
TupleExpression
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (6)
1247
if (token.Parent is (kind: SyntaxKind.ParenthesizedExpression or SyntaxKind.
TupleExpression
or SyntaxKind.CastExpression))
1324
SyntaxKind.
TupleExpression
or
1575
SyntaxKind.
TupleExpression
or
1639
if (leftToken.Kind() is SyntaxKind.OpenParenToken or SyntaxKind.CommaToken && leftToken.Parent.IsKind(SyntaxKind.
TupleExpression
))
1679
if (node.Parent.IsKind(SyntaxKind.Argument) && node.Parent.Parent.IsKind(SyntaxKind.
TupleExpression
))
2423
token.Parent is (kind: SyntaxKind.ArgumentList or SyntaxKind.BracketedArgumentList or SyntaxKind.
TupleExpression
))