1 implementation of Conversion
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5106public CommonConversion Conversion => ConversionConvertible.ToCommonConversion();
13 references to Conversion
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (2)
129var leftConv = (leftTarget as IConversionOperation)?.Conversion; 130var rightConv = (rightTarget as IConversionOperation)?.Conversion;
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
162return operation is IConversionOperation { Conversion.IsUserDefined: false } op
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
404if (originalConversionOperation.Parent is IConversionOperation { Conversion.IsUserDefined: true } originalParentConversionOperation)
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (2)
129var leftConv = (leftTarget as IConversionOperation)?.Conversion; 130var rightConv = (rightTarget as IConversionOperation)?.Conversion;
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
162return operation is IConversionOperation { Conversion.IsUserDefined: false } op
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IArgument.cs (2)
4100Assert.False(conversion.Conversion.IsImplicit); 4101Assert.True(conversion.Conversion.IsNullable);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
404if (originalConversionOperation.Parent is IConversionOperation { Conversion.IsUserDefined: true } originalParentConversionOperation)
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
444return operation is IConversionOperation { Conversion.IsUserDefined: false } op
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
1257LogConversion(operation.Conversion);
Compilation\TestOperationVisitor.cs (1)
842var conversion = operation.Conversion;