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;
574var castedType = originalSemanticModel.GetTypeInfo(castNode, cancellationToken).Type;
649var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
840var castType = originalSemanticModel.GetTypeInfo(castExpression, cancellationToken).Type;
861=> IsNullOrErrorType(info.Type) || IsNullOrErrorType(info.ConvertedType);
986var castSideType = semanticModel.GetTypeInfo(castSide, cancellationToken).Type;
987var castedExpressionType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type;
991var otherSideType = semanticModel.GetTypeInfo(otherSide, cancellationToken).Type;
1009var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
1010var castedExpressionType = semanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
1051return typeInfo.Type?.Kind == SymbolKind.ArrayType;
1237var 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;
574var castedType = originalSemanticModel.GetTypeInfo(castNode, cancellationToken).Type;
649var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
840var castType = originalSemanticModel.GetTypeInfo(castExpression, cancellationToken).Type;
861=> IsNullOrErrorType(info.Type) || IsNullOrErrorType(info.ConvertedType);
986var castSideType = semanticModel.GetTypeInfo(castSide, cancellationToken).Type;
987var castedExpressionType = semanticModel.GetTypeInfo(castExpression.Expression, cancellationToken).Type;
991var otherSideType = semanticModel.GetTypeInfo(otherSide, cancellationToken).Type;
1009var castType = semanticModel.GetTypeInfo(castNode, cancellationToken).Type;
1010var castedExpressionType = semanticModel.GetTypeInfo(castedExpressionNode, cancellationToken).Type;
1051return typeInfo.Type?.Kind == SymbolKind.ArrayType;
1237var rewrittenType = rewrittenSemanticModel.GetTypeInfo(rewrittenExpression, cancellationToken).Type;