22 references to InAttributeArgument
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (1)
538
if (!
InAttributeArgument
)
Binder\Binder_Expressions.cs (8)
46
if (InConstructorInitializer ||
InAttributeArgument
)
2125
(InParameterDefaultValue ||
InAttributeArgument
||
2268
InAttributeArgument
||
2318
else if (InConstructorInitializer ||
InAttributeArgument
)
6940
if (!this.
InAttributeArgument
&& !this.InParameterDefaultValue && type.IsComImport)
8831
return !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
9398
!
InAttributeArgument
&& !InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
10125
bool allowRefOmittedArguments = !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
Binder\Binder_Invocation.cs (5)
1437
if (
InAttributeArgument
)
1581
var containingMember =
InAttributeArgument
? attributedMember : ContainingMember() switch
1586
Debug.Assert(
InAttributeArgument
|| (attributedMember is null && containingMember is not null));
1664
if (
InAttributeArgument
&& parameterDefaultValue?.IsBad == true)
1728
if (
InAttributeArgument
&& parameterType.SpecialType == SpecialType.System_Object)
Binder\Semantics\Conversions\Conversions.cs (2)
133
if (_binder.InParameterDefaultValue || _binder.
InAttributeArgument
)
549
protected override bool IsAttributeArgumentBinding => _binder.
InAttributeArgument
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
674
if (_binder.
InAttributeArgument
|| (_binder.Flags & BinderFlags.InContextualAttributeBinder) != 0)
2219
if (!_binder.
InAttributeArgument
)
2343
if (!_binder.
InAttributeArgument
)
3980
if ((options & Options.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.
InAttributeArgument
)
4622
if (!_binder.InParameterDefaultValue && !_binder.
InAttributeArgument
FlowAnalysis\NullableWalker.cs (1)
8295
if (!_binder.
InAttributeArgument
&& !_binder.InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.