24 references to InAttributeArgument
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder.ValueChecks.cs (1)
762if (!InAttributeArgument)
Binder\Binder_Conversions.cs (1)
2716if (InFieldInitializer && !ContainingType!.IsScriptClass || InConstructorInitializer || InAttributeArgument)
Binder\Binder_Expressions.cs (8)
47if (InConstructorInitializer || InAttributeArgument) 2150(InParameterDefaultValue || InAttributeArgument || 2293InAttributeArgument || 2343else if (InConstructorInitializer || InAttributeArgument) 6980if (!this.InAttributeArgument && !this.InParameterDefaultValue && type.IsComImport) 8879return !InParameterDefaultValue && !InAttributeArgument && receiver.IsExpressionOfComImportType(); 9392!InAttributeArgument && !InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that. 10119bool allowRefOmittedArguments = !InParameterDefaultValue && !InAttributeArgument && receiver.IsExpressionOfComImportType();
Binder\Binder_Invocation.cs (5)
1461if (InAttributeArgument) 1607var containingMember = InAttributeArgument ? attributedMember : ContainingMember() switch 1612Debug.Assert(InAttributeArgument || (attributedMember is null && containingMember is not null)); 1691if (InAttributeArgument && parameterDefaultValue?.IsBad == true) 1754if (InAttributeArgument && parameterType.SpecialType == SpecialType.System_Object)
Binder\Semantics\Conversions\Conversions.cs (2)
133if (_binder.InParameterDefaultValue || _binder.InAttributeArgument) 549protected override bool IsAttributeArgumentBinding => _binder.InAttributeArgument;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
675if (_binder.InAttributeArgument || (_binder.Flags & BinderFlags.InContextualAttributeBinder) != 0) 2201if (!_binder.InAttributeArgument) 2325if (!_binder.InAttributeArgument) 3994if ((options & Options.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.InAttributeArgument) 4592if (!_binder.InParameterDefaultValue && !_binder.InAttributeArgument
FlowAnalysis\NullableWalker.cs (1)
8770if (!_binder.InAttributeArgument && !_binder.InParameterDefaultValue && // These checks prevent cycles caused by attribute binding when HasInlineArrayAttribute check triggers that.
Symbols\Symbol_Attributes.cs (1)
677Debug.Assert(!binder.InAttributeArgument || this is MethodSymbol { MethodKind: MethodKind.LambdaMethod or MethodKind.LocalFunction }, "Possible cycle in attribute binding");