22 references to InAttributeArgument
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (1)
532
if (!
InAttributeArgument
)
Binder\Binder_Expressions.cs (8)
46
if (InConstructorInitializer ||
InAttributeArgument
)
2220
InAttributeArgument
||
2270
else if (InConstructorInitializer ||
InAttributeArgument
)
6886
if (!this.
InAttributeArgument
&& !this.InParameterDefaultValue && type.IsComImport)
8404
if (!InParameterDefaultValue && !
InAttributeArgument
&& methodGroup.Receiver.IsExpressionOfComImportType())
9019
!
InAttributeArgument
&& !InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
9746
bool allowRefOmittedArguments = !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
10437
if (!InParameterDefaultValue && !
InAttributeArgument
&& methodGroup.Receiver.IsExpressionOfComImportType())
Binder\Binder_Invocation.cs (5)
1381
if (
InAttributeArgument
)
1525
var containingMember =
InAttributeArgument
? attributedMember : ContainingMember() switch
1530
Debug.Assert(
InAttributeArgument
|| (attributedMember is null && containingMember is not null));
1608
if (
InAttributeArgument
&& parameterDefaultValue?.IsBad == true)
1672
if (
InAttributeArgument
&& parameterType.SpecialType == SpecialType.System_Object)
Binder\Semantics\Conversions\Conversions.cs (2)
131
if (_binder.InParameterDefaultValue || _binder.
InAttributeArgument
)
526
protected override bool IsAttributeArgumentBinding => _binder.
InAttributeArgument
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
677
if (_binder.
InAttributeArgument
|| (_binder.Flags & BinderFlags.InContextualAttributeBinder) != 0)
2183
if (!_binder.
InAttributeArgument
)
2307
if (!_binder.
InAttributeArgument
)
3895
if ((options & Options.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.
InAttributeArgument
)
4442
if (!_binder.InParameterDefaultValue && !_binder.
InAttributeArgument
FlowAnalysis\NullableWalker.cs (1)
8137
if (!_binder.
InAttributeArgument
&& !_binder.InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.