12 overrides of HasUnscopedRefAttribute
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder.ValueChecks.cs (1)
3394
internal override bool
HasUnscopedRefAttribute
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
37
internal override bool
HasUnscopedRefAttribute
=> false;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1074
internal override bool
HasUnscopedRefAttribute
=> _packedFlags.HasUnscopedRefAttribute;
Symbols\SignatureOnlyParameterSymbol.cs (1)
63
internal override bool
HasUnscopedRefAttribute
=> false;
Symbols\Source\SourceClonedParameterSymbol.cs (1)
70
internal override bool
HasUnscopedRefAttribute
=> _originalParam.HasUnscopedRefAttribute;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
227
internal override bool
HasUnscopedRefAttribute
=> GetEarlyDecodedWellKnownAttributeData()?.HasUnscopedRefAttribute == true;
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
167
internal override bool
HasUnscopedRefAttribute
=> false;
Symbols\Source\ThisParameterSymbol.cs (1)
203
internal override bool
HasUnscopedRefAttribute
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
517
internal override bool
HasUnscopedRefAttribute
=> false;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
335
internal override bool
HasUnscopedRefAttribute
=> false;
392
internal override bool
HasUnscopedRefAttribute
=> _hasUnscopedRefAttribute;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
169
internal sealed override bool
HasUnscopedRefAttribute
=> _underlyingParameter.HasUnscopedRefAttribute;
18 references to HasUnscopedRefAttribute
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder.ValueChecks.cs (3)
1494
{
HasUnscopedRefAttribute
: true, UseUpdatedEscapeRules: true, RefKind: RefKind.Out } => SafeContext.ReturnOnly,
1495
{
HasUnscopedRefAttribute
: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod,
3395
=> _underlyingParameter.
HasUnscopedRefAttribute
;
Binder\Binder_Conversions.cs (1)
2350
if (delegateParameter.
HasUnscopedRefAttribute
)
Binder\Binder_Expressions.cs (2)
11189
(parameters.Any(p => p.
HasUnscopedRefAttribute
&& p.UseUpdatedEscapeRules) ? parameters.SelectAsArray(p => p.
HasUnscopedRefAttribute
&& p.UseUpdatedEscapeRules) : default);
Binder\Semantics\Conversions\Conversions.cs (1)
95
if (invoke.Parameters.Any(p => p.
HasUnscopedRefAttribute
))
BoundTree\UnboundLambda.cs (1)
790
lambdaSymbol.Parameters.SelectAsArray(p => p.
HasUnscopedRefAttribute
&& p.UseUpdatedEscapeRules),
Symbols\Source\SourceClonedParameterSymbol.cs (1)
70
internal override bool HasUnscopedRefAttribute => _originalParam.
HasUnscopedRefAttribute
;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1476
if (!isValidScopedConversion(allowVariance, baseParameter.EffectiveScope, baseParameter.
HasUnscopedRefAttribute
, overrideParameter.EffectiveScope, overrideParameter.
HasUnscopedRefAttribute
))
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
192
if (this.
HasUnscopedRefAttribute
&& this.ContainingSymbol is SynthesizedDelegateInvokeMethod)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
169
internal sealed override bool HasUnscopedRefAttribute => _underlyingParameter.
HasUnscopedRefAttribute
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RefFieldTests.cs (1)
12064
Assert.Equal(expectedHasUnscopedRefAttribute, parameter.
HasUnscopedRefAttribute
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\PartialPropertiesTests.cs (4)
4333
Assert.True(indexer.Parameters[0].
HasUnscopedRefAttribute
);
4334
Assert.True(indexer.PartialImplementationPart!.Parameters[0].
HasUnscopedRefAttribute
);
4335
Assert.True(indexer.GetMethod!.Parameters[0].
HasUnscopedRefAttribute
);
4336
Assert.True(indexer.GetMethod!.PartialImplementationPart!.Parameters[0].
HasUnscopedRefAttribute
);