src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (18)
120var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
121var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
155var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
156var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
160var parentCastType = semanticModel.GetTypeInfo(parentCast.Type, cancellationToken).Type;
486var castedExpressionType = originalSemanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
487var isType = originalSemanticModel.GetTypeInfo(isExpression.Right, cancellationToken).Type;
592var castedType = originalSemanticModel.GetTypeInfo(castNode, cancellationToken).Type;
667var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
858var castType = originalSemanticModel.GetTypeInfo(castExpression, cancellationToken).Type;
879=> IsNullOrErrorType(info.Type) || IsNullOrErrorType(info.ConvertedType);
1004var castSideType = semanticModel.GetTypeInfo(castSide, cancellationToken).Type;
1005var castedExpressionType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type;
1009var otherSideType = semanticModel.GetTypeInfo(otherSide, cancellationToken).Type;
1027var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
1028var castedExpressionType = semanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
1069return typeInfo.Type?.Kind == SymbolKind.ArrayType;
1255var rewrittenType = rewrittenSemanticModel.GetTypeInfo(rewrittenExpression, cancellationToken).Type;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (18)
120var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
121var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
155var enumType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type as INamedTypeSymbol;
156var castedType = semanticModel.GetTypeInfo(castExpression.Type, cancellationToken).Type;
160var parentCastType = semanticModel.GetTypeInfo(parentCast.Type, cancellationToken).Type;
486var castedExpressionType = originalSemanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
487var isType = originalSemanticModel.GetTypeInfo(isExpression.Right, cancellationToken).Type;
592var castedType = originalSemanticModel.GetTypeInfo(castNode, cancellationToken).Type;
667var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
858var castType = originalSemanticModel.GetTypeInfo(castExpression, cancellationToken).Type;
879=> IsNullOrErrorType(info.Type) || IsNullOrErrorType(info.ConvertedType);
1004var castSideType = semanticModel.GetTypeInfo(castSide, cancellationToken).Type;
1005var castedExpressionType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type;
1009var otherSideType = semanticModel.GetTypeInfo(otherSide, cancellationToken).Type;
1027var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
1028var castedExpressionType = semanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
1069return typeInfo.Type?.Kind == SymbolKind.ArrayType;
1255var rewrittenType = rewrittenSemanticModel.GetTypeInfo(rewrittenExpression, cancellationToken).Type;