27 references to GetConversion
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
363var conversion = conversionOperation.GetConversion();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (9)
225var conversion = conversionOperation.GetConversion(); 289var originalConversion = originalConversionOperation.GetConversion(); 391var originalParentConversion = originalParentConversionOperation.GetConversion(); 700var innerOriginalConversion = originalConversionOperation.GetConversion(); 711var outerOriginalConversion = outerOriginalConversionOperation.GetConversion(); 738var originalConversion = originalConversionOperation.GetConversion(); 764var rewrittenBitwiseNotConversion = rewrittenBitwiseNotConversionOperation.GetConversion(); 806var originalConversion = conversionOperation.GetConversion(); 851conditionalParentConversion.GetConversion().IsImplicit &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
FirstClassSpanTests.cs (2)
2772var conv = op.GetConversion(); 2788var conv = op.GetConversion();
Semantics\CollectionExpressionTests.cs (2)
26818Assert.Equal(expectedConversion, conversionOperation.GetConversion()); 26873Assert.Equal(expectedConversion, conversionOperation.GetConversion());
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
363var conversion = conversionOperation.GetConversion();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\Utf8StringsLiteralsTests.cs (1)
3316Assert.True(((IConversionOperation)model.GetOperation(node)).GetConversion().IsSpan);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (9)
225var conversion = conversionOperation.GetConversion(); 289var originalConversion = originalConversionOperation.GetConversion(); 391var originalParentConversion = originalParentConversionOperation.GetConversion(); 700var innerOriginalConversion = originalConversionOperation.GetConversion(); 711var outerOriginalConversion = outerOriginalConversionOperation.GetConversion(); 738var originalConversion = originalConversionOperation.GetConversion(); 764var rewrittenBitwiseNotConversion = rewrittenBitwiseNotConversionOperation.GetConversion(); 806var originalConversion = conversionOperation.GetConversion(); 851conditionalParentConversion.GetConversion().IsImplicit &&
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\TestOperationVisitor.cs (2)
851CSharp.Conversion csharpConversion = CSharp.CSharpExtensions.GetConversion(operation); 856Assert.Throws<ArgumentException>(() => CSharp.CSharpExtensions.GetConversion(operation));