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,
29159VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29231VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29283VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29341VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29475VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29516VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29551VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29600VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29678VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29765VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29843VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
29936VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30027VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30095VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
30959var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31003var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31049var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31093var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31136var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31179var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31218var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
31251var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31285var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31338var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31404var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31465var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31541var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
31584var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
31631var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Last();
35015var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35110var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35152var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
35198var collection = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single();
36177var collectionExpression = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().First();
36218var collectionExpression = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().First();
40873model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40908model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40945model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
40982model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41019model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41056model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41099model.VerifyOperationTree(tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().Single(), """
41179VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41225VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41267VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41317VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41362VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41411VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41470VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41500VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41546VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41576VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41634VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41667VerifyOperationTreeForTest<CollectionExpressionSyntax>(comp,
41733VerifyOperationTreeForTest<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)