34 references to IsCollectionExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Attributes.cs (1)
914
if (node.Conversion.
IsCollectionExpression
Binder\Binder_Conversions.cs (3)
87
!conversion.
IsCollectionExpression
&&
233
Debug.Assert(conversion.
IsCollectionExpression
234
|| (conversion.IsNullable && conversion.UnderlyingConversions[0].
IsCollectionExpression
)
Binder\Binder_Invocation.cs (1)
1755
Debug.Assert(conversion.
IsCollectionExpression
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
170
if (!conversion.
IsCollectionExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
498
if (originalConversion.
IsCollectionExpression
|| rewrittenConversion.
IsCollectionExpression
)
502
if (!originalConversion.
IsCollectionExpression
|| !rewrittenConversion.
IsCollectionExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
794
this.SpeculativeSemanticModel.GetConversion(newExpression).
IsCollectionExpression
)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Semantics\CollectionExpressionTests.cs (17)
14238
Assert.False(conversion.
IsCollectionExpression
);
14244
Assert.True(underlyingConversion.
IsCollectionExpression
);
14314
Assert.False(conversion.
IsCollectionExpression
);
14320
Assert.True(underlyingConversion.
IsCollectionExpression
);
14659
Assert.True(conversion.
IsCollectionExpression
);
14754
Assert.True(underlyingConversion.
IsCollectionExpression
);
28628
Assert.True(conversion2.
IsCollectionExpression
);
28672
Assert.True(conversion2.
IsCollectionExpression
);
28762
Assert.True(conversion2.
IsCollectionExpression
);
28805
Assert.True(conversion2.
IsCollectionExpression
);
28916
Assert.True(conversion.
IsCollectionExpression
);
28954
Assert.True(conversion2.
IsCollectionExpression
);
28962
Assert.True(conversion3.
IsCollectionExpression
);
29007
Assert.True(conversion2.
IsCollectionExpression
);
29015
Assert.True(conversion3.
IsCollectionExpression
);
29249
Assert.True(conversion1.
IsCollectionExpression
);
32308
Assert.True(collectionConversion.
IsCollectionExpression
);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
170
if (!conversion.
IsCollectionExpression
)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
498
if (originalConversion.
IsCollectionExpression
|| rewrittenConversion.
IsCollectionExpression
)
502
if (!originalConversion.
IsCollectionExpression
|| !rewrittenConversion.
IsCollectionExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
794
this.SpeculativeSemanticModel.GetConversion(newExpression).
IsCollectionExpression
)