8 overrides of EffectiveScope
Microsoft.CodeAnalysis.CSharp (8)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
32internal override ScopedKind EffectiveScope
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1006internal sealed override ScopedKind EffectiveScope => _packedFlags.Scope;
Symbols\SignatureOnlyParameterSymbol.cs (1)
51internal override ScopedKind EffectiveScope
Symbols\Source\SourceClonedParameterSymbol.cs (1)
61internal sealed override ScopedKind EffectiveScope => _originalParam.EffectiveScope;
Symbols\Source\SourceParameterSymbol.cs (1)
230internal abstract override ScopedKind EffectiveScope { get; }
Symbols\Source\ThisParameterSymbol.cs (1)
169internal override ScopedKind EffectiveScope
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
213internal sealed override ScopedKind EffectiveScope => _scope;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
155internal sealed override ScopedKind EffectiveScope => _underlyingParameter.EffectiveScope;
25 references to EffectiveScope
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (4)
1036{ EffectiveScope: ScopedKind.ScopedValue } => CurrentMethodScope, 1050{ EffectiveScope: ScopedKind.ScopedRef } => CurrentMethodScope, 1084var isRefScoped = parameterSymbol.EffectiveScope == ScopedKind.ScopedRef; 4547call.Method.Parameters[0].EffectiveScope == ScopedKind.ScopedValue)
Binder\Binder_Expressions.cs (2)
9196(parameters.Any(p => p.EffectiveScope != ScopedKind.None) ? parameters.SelectAsArray(p => p.EffectiveScope) : default);
BoundTree\UnboundLambda.cs (2)
711parameterScopesBuilder[i] = lambdaSymbol.Parameters[i].EffectiveScope; 715Debug.Assert(lambdaSymbol.Parameters[i].EffectiveScope == parameterScopesBuilder[i]);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
139p.EffectiveScope,
Symbols\PublicModel\ParameterSymbol.cs (1)
61ScopedKind IParameterSymbol.ScopedKind => _underlying.EffectiveScope;
Symbols\Source\ParameterHelpers.cs (1)
300var scope = parameter.EffectiveScope;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1459if (!isValidScopedConversion(allowVariance, baseParameter.EffectiveScope, baseParameter.HasUnscopedRefAttribute, overrideParameter.EffectiveScope, overrideParameter.HasUnscopedRefAttribute))
Symbols\Source\SourceParameterSymbolBase.cs (1)
103AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeScopedRefAttribute(this, EffectiveScope));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
292oldParam.EffectiveScope,
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
155internal sealed override ScopedKind EffectiveScope => _underlyingParameter.EffectiveScope;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
263Assert.Equal(ScopedKind.ScopedValue, parameter.EffectiveScope); 268Assert.Equal(ScopedKind.None, parameter.EffectiveScope); 273Assert.Equal(ScopedKind.ScopedRef, parameter.EffectiveScope); 278Assert.Equal(ScopedKind.ScopedRef, parameter.EffectiveScope);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\ObjectIdLocalSymbol.cs (1)
80m => method.Parameters.SelectAsArray(p => SynthesizedParameterSymbol.Create(m, p.TypeWithAnnotations, p.Ordinal, p.RefKind, p.Name, p.EffectiveScope, refCustomModifiers: p.RefCustomModifiers)));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RefFieldTests.cs (4)
11503Assert.Equal(expectedScope, parameter.EffectiveScope); 26039Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope); 26091Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope); 26143Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope);