32 references to HasUseSiteError
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Conversions.cs (2)
2811
Debug.Assert(delegateType is NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: {
HasUseSiteError
: false } }
3041
Debug.Assert(!selectedMethod.
HasUseSiteError
, "Shouldn't have reached this point if there were use site errors.");
Binder\Binder_Invocation.cs (1)
1288
Debug.Assert(!method.
HasUseSiteError
, "Shouldn't have reached this point if there were use site errors.");
Binder\Binder_Patterns.cs (2)
243
if (!systemRangeType.
HasUseSiteError
)
392
if (!systemIndexType.
HasUseSiteError
)
Binder\Semantics\Conversions\Conversions.cs (2)
287
if ((object)methodSymbol == null || methodSymbol.
HasUseSiteError
)
382
Debug.Assert((object)delegateInvokeMethod != null && !delegateInvokeMethod.
HasUseSiteError
,
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1480
if (invokeMethod is null || invokeMethod.
HasUseSiteError
)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
1064
if ((object)method == null || method.
HasUseSiteError
)
1390
Debug.Assert((object)delegateType.DelegateInvokeMethod != null && !delegateType.DelegateInvokeMethod.
HasUseSiteError
,
3037
Debug.Assert((object)target.DelegateInvokeMethod != null && !target.DelegateInvokeMethod.
HasUseSiteError
,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
967
if (constructor.
HasUseSiteError
)
1011
if (constructor.
HasUseSiteError
)
4056
if ((options & Options.InferringUniqueMethodGroupSignature) == 0 && member.
HasUseSiteError
)
4125
if ((options & Options.InferringUniqueMethodGroupSignature) == 0 && member.
HasUseSiteError
)
CodeGen\EmitStatement.cs (7)
1538
Debug.Assert(sequenceEqualsTMethod != null && !sequenceEqualsTMethod.
HasUseSiteError
);
1543
Debug.Assert(asSpanMethod != null && !asSpanMethod.
HasUseSiteError
);
1549
Debug.Assert(stringEqualityMethod != null && !stringEqualityMethod.
HasUseSiteError
);
1632
Debug.Assert(spanTLengthMethod != null && !spanTLengthMethod.
HasUseSiteError
);
1639
if (stringLengthMethod != null && !stringLengthMethod.
HasUseSiteError
)
1656
if (spanTIndexerMethod != null && !spanTIndexerMethod.
HasUseSiteError
)
1665
if (stringCharsIndexer != null && !stringCharsIndexer.
HasUseSiteError
)
Compilation\SyntaxTreeSemanticModel.cs (1)
2095
if ((object)delegateInvoke == null || delegateInvoke.
HasUseSiteError
)
FlowAnalysis\NullableWalker.cs (1)
3645
return type.IsErrorType() || type.IsDynamic() || type.
HasUseSiteError
|| (type.IsAnonymousType && canIgnoreAnonymousType((NamedTypeSymbol)type));
Lowering\LocalRewriter\LocalRewriter_Literal.cs (2)
91
if (useField is {
HasUseSiteError
: false, ContainingType: {
HasUseSiteError
: false } })
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
747
if (!delegateType.
HasUseSiteError
)
Symbols\Attributes\PEAttributeData.cs (2)
183
case {
HasUseSiteError
: true } attributeConstructor:
192
case {
HasUseSiteError
: true } attributeClass:
Symbols\Attributes\RetargetingAttributeData.cs (1)
64
if (AttributeClass is {
HasUseSiteError
: true })
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
812
Debug.Assert(!isVararg ||
HasUseSiteError
);
Symbols\Source\SourceAssemblySymbol.cs (1)
1827
object constantValue = (object)fieldRequestMinimum == null || fieldRequestMinimum.
HasUseSiteError
? 0 : fieldRequestMinimum.ConstantValue;