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