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