26 references to InAttributeArgument
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder.ValueChecks.cs (1)
762
if (!
InAttributeArgument
)
Binder\Binder_Attributes.cs (1)
158
Debug.Assert(binder.
InAttributeArgument
);
Binder\Binder_Conversions.cs (1)
2722
if (InFieldInitializer && !ContainingType!.IsScriptClass || InConstructorInitializer ||
InAttributeArgument
)
Binder\Binder_Expressions.cs (9)
53
if (InConstructorInitializer ||
InAttributeArgument
)
2092
(InParameterDefaultValue ||
InAttributeArgument
||
2098
if (this.ContainingMember() is { IsStatic: true } && !InParameterDefaultValue && !
InAttributeArgument
&& (object)this.ContainingMember().ContainingSymbol == parameter.ContainingSymbol)
2343
InAttributeArgument
||
2393
else if (InConstructorInitializer ||
InAttributeArgument
)
7031
if (!this.
InAttributeArgument
&& !this.InParameterDefaultValue && type.IsComImport)
8994
return !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
9526
!
InAttributeArgument
&& !InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
10253
bool allowRefOmittedArguments = !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
Binder\Binder_Invocation.cs (5)
1445
if (
InAttributeArgument
)
1591
var containingMember =
InAttributeArgument
? attributedMember : ContainingMember() switch
1596
Debug.Assert(
InAttributeArgument
|| (attributedMember is null && containingMember is not null));
1675
if (
InAttributeArgument
&& parameterDefaultValue?.IsBad == true)
1738
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)
675
if (_binder.
InAttributeArgument
|| (_binder.Flags & BinderFlags.InContextualAttributeBinder) != 0)
2207
if (!_binder.
InAttributeArgument
)
2331
if (!_binder.
InAttributeArgument
)
4000
if ((options & Options.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.
InAttributeArgument
)
4598
if (!_binder.InParameterDefaultValue && !_binder.
InAttributeArgument
FlowAnalysis\NullableWalker.cs (1)
8769
if (!_binder.
InAttributeArgument
&& !_binder.InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
Symbols\Symbol_Attributes.cs (1)
677
Debug.Assert(!binder.
InAttributeArgument
|| this is MethodSymbol { MethodKind: MethodKind.LambdaMethod or MethodKind.LocalFunction }, "Possible cycle in attribute binding");