9 overrides of EffectiveScope
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder.ValueChecks.cs (1)
3382
internal override ScopedKind
EffectiveScope
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
35
internal override ScopedKind
EffectiveScope
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1066
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)
167
internal sealed override ScopedKind
EffectiveScope
=> _underlyingParameter.EffectiveScope;
194 references to EffectiveScope
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (4)
1481
{
EffectiveScope
: ScopedKind.ScopedValue } => SafeContext.CurrentMethod,
1495
{
EffectiveScope
: ScopedKind.ScopedRef } => SafeContext.CurrentMethod,
1528
var isRefScoped = parameterSymbol.
EffectiveScope
== ScopedKind.ScopedRef;
4800
if (parameter.
EffectiveScope
== ScopedKind.ScopedValue)
Binder\Binder_Expressions.cs (2)
11218
(parameters.Any(p => p.
EffectiveScope
!= ScopedKind.None) ? parameters.SelectAsArray(p => p.
EffectiveScope
) : default);
Binder\RefSafetyAnalysis.cs (1)
654
tryGetReceiverParameter(m)?.
EffectiveScope
== ScopedKind.None)
BoundTree\UnboundLambda.cs (2)
779
parameterScopesBuilder[i] = lambdaSymbol.Parameters[i].
EffectiveScope
;
783
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)
226
(!builder.ReturnType.IsRefLikeType || builder.Parameters[0].
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)
1396
p is {
EffectiveScope
: ScopedKind.None, RefKind: RefKind.Ref } or {
EffectiveScope
: ScopedKind.ScopedRef, RefKind: RefKind.Out } &&
1476
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)
167
internal sealed override ScopedKind EffectiveScope => _underlyingParameter.
EffectiveScope
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (168)
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
263
Assert.Equal(ScopedKind.ScopedValue, parameter.
EffectiveScope
);
268
Assert.Equal(ScopedKind.None, parameter.
EffectiveScope
);
273
Assert.Equal(ScopedKind.ScopedRef, parameter.
EffectiveScope
);
278
Assert.Equal(ScopedKind.ScopedRef, parameter.
EffectiveScope
);
RefStructInterfacesTests.cs (10)
21641
Assert.Equal(ScopedKind.ScopedValue, parameter.
EffectiveScope
);
21651
Assert.Equal(ScopedKind.ScopedValue, parameter.
EffectiveScope
);
21662
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
21910
Assert.Equal(ScopedKind.None, p.
EffectiveScope
);
22047
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
22051
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
22055
Assert.Equal(ScopedKind.None, p.
EffectiveScope
);
22110
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
22114
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
22118
Assert.Equal(ScopedKind.None, p.
EffectiveScope
);
Semantics\ExtensionTests.cs (1)
4294
AssertEx.Equal(ScopedKind.ScopedRef, m.GlobalNamespace.GetTypeMember("Extensions").GetTypeMembers().Single().ExtensionParameter.
EffectiveScope
);
Semantics\ParamsCollectionTests.cs (153)
9035
Assert.Equal(scope, p.
EffectiveScope
);
9041
Assert.Equal(scope, getMethod.Parameters[p.Ordinal].
EffectiveScope
);
9046
Assert.Equal(scope, setMethod.Parameters[p.Ordinal].
EffectiveScope
);
9259
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
9260
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9263
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
9264
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9267
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
9268
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9300
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
9301
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9304
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
9305
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9308
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
9309
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9352
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9353
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9354
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9406
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9407
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9408
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9464
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9465
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9466
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9468
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9469
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9470
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9521
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9522
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9523
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9525
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9526
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9527
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9591
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9592
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9593
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9595
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9596
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9597
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9679
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9680
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9681
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9683
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9684
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9685
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9746
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9747
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9748
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9787
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9788
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9789
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9839
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9840
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9841
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9900
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9901
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9902
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9947
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
9948
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
9949
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10000
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10001
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10002
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10055
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10056
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10057
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10059
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10060
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10061
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10111
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10112
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10113
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10115
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10116
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10117
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10118
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10119
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10120
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10156
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10157
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
10160
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10161
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
10164
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10165
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
10198
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10199
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
10202
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10203
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
10206
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10207
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
10240
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10241
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
10244
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10245
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
10248
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10249
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RefFieldTests.cs (4)
12063
Assert.Equal(expectedScope, parameter.
EffectiveScope
);
27411
Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().
EffectiveScope
);
27463
Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().
EffectiveScope
);
27515
Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().
EffectiveScope
);