13 references to HasExpressionType
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_AnonymousTypes.cs (1)
218if (expression.HasExpressionType())
Binder\Binder_Expressions.cs (2)
3592else if (argument.Kind == BoundKind.DiscardExpression && !argument.HasExpressionType()) 10022else if (index.Kind == BoundKind.DiscardExpression && !index.HasExpressionType())
Binder\Binder_Invocation.cs (3)
132e.Kind == BoundKind.DiscardExpression && !e.HasExpressionType())); 541BoundDiscardExpression discard when !discard.HasExpressionType() => discard.FailInference(this, diagnostics), 2208if (argument.HasExpressionType())
Binder\Binder_Query.cs (1)
738if (!yExpression.HasAnyErrors && !yExpression.HasExpressionType())
Binder\Binder_Statements.cs (1)
905if (!expression.HasAnyErrors && !expression.HasExpressionType())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
2955(nodeKind == BoundKind.DiscardExpression && !node.HasExpressionType()))
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1248if (!argument.HasExpressionType() && 1342Debug.Assert(argument.Kind != BoundKind.DiscardExpression || argument.HasExpressionType());
Compilation\CSharpSemanticModel.cs (2)
2060if (boundExpr.HasExpressionType()) 2199else if (highestBoundExpr != null && highestBoundExpr != boundExpr && highestBoundExpr.HasExpressionType())