24 references to InAttributeArgument
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder.ValueChecks.cs (1)
539
if (!
InAttributeArgument
)
Binder\Binder_Conversions.cs (1)
2734
if (InFieldInitializer && !ContainingType!.IsScriptClass || InConstructorInitializer ||
InAttributeArgument
)
Binder\Binder_Expressions.cs (8)
46
if (InConstructorInitializer ||
InAttributeArgument
)
2127
(InParameterDefaultValue ||
InAttributeArgument
||
2270
InAttributeArgument
||
2320
else if (InConstructorInitializer ||
InAttributeArgument
)
6942
if (!this.
InAttributeArgument
&& !this.InParameterDefaultValue && type.IsComImport)
8841
return !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
9408
!
InAttributeArgument
&& !InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
10135
bool allowRefOmittedArguments = !InParameterDefaultValue && !
InAttributeArgument
&& receiver.IsExpressionOfComImportType();
Binder\Binder_Invocation.cs (5)
1439
if (
InAttributeArgument
)
1583
var containingMember =
InAttributeArgument
? attributedMember : ContainingMember() switch
1588
Debug.Assert(
InAttributeArgument
|| (attributedMember is null && containingMember is not null));
1666
if (
InAttributeArgument
&& parameterDefaultValue?.IsBad == true)
1730
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)
2223
if (!_binder.
InAttributeArgument
)
2347
if (!_binder.
InAttributeArgument
)
3984
if ((options & Options.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.
InAttributeArgument
)
4582
if (!_binder.InParameterDefaultValue && !_binder.
InAttributeArgument
FlowAnalysis\NullableWalker.cs (1)
8628
if (!_binder.
InAttributeArgument
&& !_binder.InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
Symbols\Symbol_Attributes.cs (1)
673
Debug.Assert(!binder.
InAttributeArgument
|| this is MethodSymbol { MethodKind: MethodKind.LambdaMethod or MethodKind.LocalFunction }, "Possible cycle in attribute binding");