1 instantiation of CollectionExpressionSyntax
Microsoft.CodeAnalysis.CSharp (1)
256 references to CollectionExpressionSyntax
Microsoft.CodeAnalysis.CSharp (15)
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 (28)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (92)
Semantics\CollectionExpressionTests.cs (91)
200var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
235var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
9352VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10087VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10150VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10235VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
10320VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
16224var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
16399VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
16474VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
16494var nestedCollection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
16583var nestedCollection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
16921var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
28330VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28450VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28576VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28643VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28705VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28787VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28856VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28914VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
28984VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29162VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29234VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29286VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29344VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29476VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29517VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29552VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29601VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29679VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29766VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29844VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29937VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30028VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30096VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30960var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31004var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31050var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31094var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31137var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31180var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31219var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
31252var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31286var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31339var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31405var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31466var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31542var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31585var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31632var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
35016var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35111var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35153var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35199var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
36178var collectionExpression = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().First();
36219var collectionExpression = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().First();
40874model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40909model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40946model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40983model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41020model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41057model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41100model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41180VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41226VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41268VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41318VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41363VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41412VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41471VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41501VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41547VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41577VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41635VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41668VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41734VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
Microsoft.CodeAnalysis.CSharp.Features (55)
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 (6)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Roslyn.Diagnostics.CSharp.Analyzers (6)