7 references to GetTargetType
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (6)
947
var tupleType = tupleExpression.
GetTargetType
(semanticModel, cancellationToken);
1002
return HasType(conditionalExpression.WhenFalse, out var falseType) ? falseType : conditionalExpression.
GetTargetType
(semanticModel, cancellationToken);
1004
return HasType(conditionalExpression.WhenTrue, out var trueType) ? trueType : conditionalExpression.
GetTargetType
(semanticModel, cancellationToken);
1011
lambda.
GetTargetType
(semanticModel, cancellationToken) is INamedTypeSymbol { DelegateInvokeMethod.ReturnType: var returnType } ? returnType : null;
1025
return switchExpression.
GetTargetType
(semanticModel, cancellationToken);
1036
var collectionTargetType = collectionExpression.
GetTargetType
(semanticModel, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
543
var targetType = castNode.
GetTargetType
(originalSemanticModel, cancellationToken);