34 references to IsCollectionExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Attributes.cs (1)
914if (node.Conversion.IsCollectionExpression
Binder\Binder_Conversions.cs (3)
87!conversion.IsCollectionExpression && 233Debug.Assert(conversion.IsCollectionExpression 234|| (conversion.IsNullable && conversion.UnderlyingConversions[0].IsCollectionExpression)
Binder\Binder_Invocation.cs (1)
1755Debug.Assert(conversion.IsCollectionExpression);
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
150if (!conversion.IsCollectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
498if (originalConversion.IsCollectionExpression || rewrittenConversion.IsCollectionExpression) 502if (!originalConversion.IsCollectionExpression || !rewrittenConversion.IsCollectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
794this.SpeculativeSemanticModel.GetConversion(newExpression).IsCollectionExpression)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Semantics\CollectionExpressionTests.cs (17)
14304Assert.False(conversion.IsCollectionExpression); 14310Assert.True(underlyingConversion.IsCollectionExpression); 14380Assert.False(conversion.IsCollectionExpression); 14386Assert.True(underlyingConversion.IsCollectionExpression); 14725Assert.True(conversion.IsCollectionExpression); 14820Assert.True(underlyingConversion.IsCollectionExpression); 28701Assert.True(conversion2.IsCollectionExpression); 28745Assert.True(conversion2.IsCollectionExpression); 28835Assert.True(conversion2.IsCollectionExpression); 28878Assert.True(conversion2.IsCollectionExpression); 28989Assert.True(conversion.IsCollectionExpression); 29027Assert.True(conversion2.IsCollectionExpression); 29035Assert.True(conversion3.IsCollectionExpression); 29080Assert.True(conversion2.IsCollectionExpression); 29088Assert.True(conversion3.IsCollectionExpression); 29322Assert.True(conversion1.IsCollectionExpression); 32391Assert.True(collectionConversion.IsCollectionExpression);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
150if (!conversion.IsCollectionExpression)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
498if (originalConversion.IsCollectionExpression || rewrittenConversion.IsCollectionExpression) 502if (!originalConversion.IsCollectionExpression || !rewrittenConversion.IsCollectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
794this.SpeculativeSemanticModel.GetConversion(newExpression).IsCollectionExpression)