6 references to Cast
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
ArgumentFixer.cs (1)
21=> oldArgument.WithExpression(oldArgument.Expression.Cast(conversionType));
AttributeArgumentFixer.cs (1)
21=> oldArgument.WithExpression(oldArgument.Expression.Cast(conversionType));
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (2)
199return node.Cast(typeInfo.ConvertedType); 269node.Expression.Cast(expressionConvertedType).WithAdditionalAnnotations(Formatter.Annotation),
CSharpAddExplicitCastCodeFixProvider.cs (1)
54=> expression.Cast(type);
ExpressionSyntaxExtensions.cs (1)
128var castExpression = expression.Cast(targetType);