9 overrides of EffectiveScope
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder.ValueChecks.cs (1)
3430
internal override ScopedKind
EffectiveScope
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
35
internal override ScopedKind
EffectiveScope
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1085
internal sealed override ScopedKind
EffectiveScope
=> _packedFlags.Scope;
Symbols\SignatureOnlyParameterSymbol.cs (1)
60
internal override ScopedKind
EffectiveScope
Symbols\Source\SourceClonedParameterSymbol.cs (1)
68
internal sealed override ScopedKind
EffectiveScope
=> _originalParam.EffectiveScope;
Symbols\Source\SourceParameterSymbol.cs (1)
233
internal abstract override ScopedKind
EffectiveScope
{ get; }
Symbols\Source\ThisParameterSymbol.cs (1)
188
internal override ScopedKind
EffectiveScope
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
227
internal sealed override ScopedKind
EffectiveScope
=> _scope;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
164
internal sealed override ScopedKind
EffectiveScope
=> _underlyingParameter.EffectiveScope;
21 references to EffectiveScope
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (3)
1529
{
EffectiveScope
: ScopedKind.ScopedValue } => SafeContext.CurrentMethod,
1543
{
EffectiveScope
: ScopedKind.ScopedRef } => SafeContext.CurrentMethod,
1576
var isRefScoped = parameterSymbol.
EffectiveScope
== ScopedKind.ScopedRef;
Binder\Binder_Expressions.cs (2)
11500
(parameters.Any(p => p.
EffectiveScope
!= ScopedKind.None) ? parameters.SelectAsArray(p => p.
EffectiveScope
) : default);
Binder\RefSafetyAnalysis.cs (1)
674
tryGetReceiverParameter(m)?.
EffectiveScope
== ScopedKind.None)
BoundTree\UnboundLambda.cs (2)
793
parameterScopesBuilder[i] = lambdaSymbol.Parameters[i].
EffectiveScope
;
797
Debug.Assert(lambdaSymbol.Parameters[i].
EffectiveScope
== parameterScopesBuilder[i]);
CodeGen\CodeGenerator_RefSafety.cs (2)
97
if (parameter.Type.IsRefLikeOrAllowsRefLikeType() && parameter.
EffectiveScope
!= ScopedKind.ScopedValue)
105
else if (parameter.RefKind != RefKind.None && parameter.
EffectiveScope
== ScopedKind.None)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
236
(!builder.ReturnType.IsRefLikeType || parameter.
EffectiveScope
== ScopedKind.ScopedValue))
Lowering\SynthesizedMethodBaseSymbol.cs (1)
128
p.
EffectiveScope
,
Symbols\PublicModel\ParameterSymbol.cs (1)
61
ScopedKind IParameterSymbol.ScopedKind => _underlying.
EffectiveScope
;
Symbols\Source\ParameterHelpers.cs (1)
435
var scope = parameter.
EffectiveScope
;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
1427
p is {
EffectiveScope
: ScopedKind.None, RefKind: RefKind.Ref } or {
EffectiveScope
: ScopedKind.ScopedRef, RefKind: RefKind.Out } &&
1507
if (!isValidScopedConversion(allowVariance, baseParameter.
EffectiveScope
, baseParameter.HasUnscopedRefAttribute, overrideParameter.
EffectiveScope
, overrideParameter.HasUnscopedRefAttribute))
Symbols\Source\SourceParameterSymbolBase.cs (1)
110
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeScopedRefAttribute(parameter, parameter.
EffectiveScope
));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
317
oldParam.
EffectiveScope
,
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
164
internal sealed override ScopedKind EffectiveScope => _underlyingParameter.
EffectiveScope
;