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