src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (18)
127var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
128var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
162var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
163var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
167var parentCastType = semanticModel.GetTypeInfo(parentCast.Type, cancellationToken).Type;
506var castedExpressionType = originalSemanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
507var isType = originalSemanticModel.GetTypeInfo(isExpression.Right, cancellationToken).Type;
612var castedType = originalSemanticModel.GetTypeInfo(castNode, cancellationToken).Type;
687var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
878var castType = originalSemanticModel.GetTypeInfo(castExpression, cancellationToken).Type;
899=> IsNullOrErrorType(info.Type) || IsNullOrErrorType(info.ConvertedType);
1024var castSideType = semanticModel.GetTypeInfo(castSide, cancellationToken).Type;
1025var castedExpressionType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type;
1029var otherSideType = semanticModel.GetTypeInfo(otherSide, cancellationToken).Type;
1047var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
1048var castedExpressionType = semanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
1089return typeInfo.Type?.Kind == SymbolKind.ArrayType;
1275var rewrittenType = rewrittenSemanticModel.GetTypeInfo(rewrittenExpression, cancellationToken).Type;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (18)
127var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
128var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
162var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
163var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
167var parentCastType = semanticModel.GetTypeInfo(parentCast.Type, cancellationToken).Type;
506var castedExpressionType = originalSemanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
507var isType = originalSemanticModel.GetTypeInfo(isExpression.Right, cancellationToken).Type;
612var castedType = originalSemanticModel.GetTypeInfo(castNode, cancellationToken).Type;
687var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
878var castType = originalSemanticModel.GetTypeInfo(castExpression, cancellationToken).Type;
899=> IsNullOrErrorType(info.Type) || IsNullOrErrorType(info.ConvertedType);
1024var castSideType = semanticModel.GetTypeInfo(castSide, cancellationToken).Type;
1025var castedExpressionType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type;
1029var otherSideType = semanticModel.GetTypeInfo(otherSide, cancellationToken).Type;
1047var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
1048var castedExpressionType = semanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
1089return typeInfo.Type?.Kind == SymbolKind.ArrayType;
1275var rewrittenType = rewrittenSemanticModel.GetTypeInfo(rewrittenExpression, cancellationToken).Type;