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)
150
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)
14304
Assert.False(conversion.
IsCollectionExpression
);
14310
Assert.True(underlyingConversion.
IsCollectionExpression
);
14380
Assert.False(conversion.
IsCollectionExpression
);
14386
Assert.True(underlyingConversion.
IsCollectionExpression
);
14725
Assert.True(conversion.
IsCollectionExpression
);
14820
Assert.True(underlyingConversion.
IsCollectionExpression
);
28701
Assert.True(conversion2.
IsCollectionExpression
);
28745
Assert.True(conversion2.
IsCollectionExpression
);
28835
Assert.True(conversion2.
IsCollectionExpression
);
28878
Assert.True(conversion2.
IsCollectionExpression
);
28989
Assert.True(conversion.
IsCollectionExpression
);
29027
Assert.True(conversion2.
IsCollectionExpression
);
29035
Assert.True(conversion3.
IsCollectionExpression
);
29080
Assert.True(conversion2.
IsCollectionExpression
);
29088
Assert.True(conversion3.
IsCollectionExpression
);
29322
Assert.True(conversion1.
IsCollectionExpression
);
32391
Assert.True(collectionConversion.
IsCollectionExpression
);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
150
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
)