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)
170if (!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)
14238Assert.False(conversion.IsCollectionExpression); 14244Assert.True(underlyingConversion.IsCollectionExpression); 14314Assert.False(conversion.IsCollectionExpression); 14320Assert.True(underlyingConversion.IsCollectionExpression); 14659Assert.True(conversion.IsCollectionExpression); 14754Assert.True(underlyingConversion.IsCollectionExpression); 28628Assert.True(conversion2.IsCollectionExpression); 28672Assert.True(conversion2.IsCollectionExpression); 28762Assert.True(conversion2.IsCollectionExpression); 28805Assert.True(conversion2.IsCollectionExpression); 28916Assert.True(conversion.IsCollectionExpression); 28954Assert.True(conversion2.IsCollectionExpression); 28962Assert.True(conversion3.IsCollectionExpression); 29007Assert.True(conversion2.IsCollectionExpression); 29015Assert.True(conversion3.IsCollectionExpression); 29249Assert.True(conversion1.IsCollectionExpression); 32308Assert.True(collectionConversion.IsCollectionExpression);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
170if (!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)