1 instantiation of CollectionExpressionSyntax
Microsoft.CodeAnalysis.CSharp (1)
269 references to CollectionExpressionSyntax
Microsoft.CodeAnalysis.CSharp (17)
Syntax.xml.Syntax.Generated.cs (6)
4168public CollectionExpressionSyntax Update(SyntaxToken openBracketToken, SeparatedSyntaxList<CollectionElementSyntax> elements, SyntaxToken closeBracketToken)
4172var newNode = SyntaxFactory.CollectionExpression(openBracketToken, elements, closeBracketToken);
4180public CollectionExpressionSyntax WithOpenBracketToken(SyntaxToken openBracketToken) => Update(openBracketToken, this.Elements, this.CloseBracketToken);
4181public CollectionExpressionSyntax WithElements(SeparatedSyntaxList<CollectionElementSyntax> elements) => Update(this.OpenBracketToken, elements, this.CloseBracketToken);
4182public CollectionExpressionSyntax WithCloseBracketToken(SyntaxToken closeBracketToken) => Update(this.OpenBracketToken, this.Elements, closeBracketToken);
4184public CollectionExpressionSyntax AddElements(params CollectionElementSyntax[] items) => WithElements(this.Elements.AddRange(items));
Microsoft.CodeAnalysis.CSharp.CodeStyle (19)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (30)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (96)
Semantics\CollectionExpressionTests.cs (91)
201var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
236var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
9353VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10088VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10151VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10236VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10321VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
16225var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
16398VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp, """
16475VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
16495var nestedCollection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
16584var nestedCollection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
16922var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
28383VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28503VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28629VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28696VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28758VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28840VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28909VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28967VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29037VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29223VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp, """
29303VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29355VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29413VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29545VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29586VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29621VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29670VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29748VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29835VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29913VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30006VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30097VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30165VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
31029var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31073var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31119var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31163var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31206var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31249var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31288var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
31321var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31355var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31408var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31474var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31535var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31611var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31654var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31701var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
35085var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35180var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35222var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35268var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
36247var collectionExpression = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().First();
36288var collectionExpression = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().First();
40943model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40978model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41015model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41052model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41089model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41131model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41174model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41254VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41300VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41342VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41392VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41437VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41486VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41545VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41575VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41621VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41651VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41709VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41742VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41808VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
Microsoft.CodeAnalysis.CSharp.Features (57)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Roslyn.Diagnostics.CSharp.Analyzers (7)