9 overrides of EffectiveScope
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder.ValueChecks.cs (1)
3234
internal override ScopedKind
EffectiveScope
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
35
internal override ScopedKind
EffectiveScope
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1070
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)
183
internal override ScopedKind
EffectiveScope
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
229
internal sealed override ScopedKind
EffectiveScope
=> _scope;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
162
internal sealed override ScopedKind
EffectiveScope
=> _underlyingParameter.EffectiveScope;
195 references to EffectiveScope
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder.ValueChecks.cs (5)
1469
{
EffectiveScope
: ScopedKind.ScopedValue } => SafeContext.CurrentMethod,
1483
{
EffectiveScope
: ScopedKind.ScopedRef } => SafeContext.CurrentMethod,
1516
var isRefScoped = parameterSymbol.
EffectiveScope
== ScopedKind.ScopedRef;
4622
if (parameter.
EffectiveScope
== ScopedKind.ScopedValue)
5686
call.Method.Parameters[0].
EffectiveScope
== ScopedKind.ScopedValue)
Binder\Binder_Expressions.cs (2)
11189
(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)
770
parameterScopesBuilder[i] = lambdaSymbol.Parameters[i].
EffectiveScope
;
774
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)
427
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)
112
AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeScopedRefAttribute(parameter, parameter.
EffectiveScope
));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
317
oldParam.
EffectiveScope
,
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
162
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)
21243
Assert.Equal(ScopedKind.ScopedValue, parameter.
EffectiveScope
);
21253
Assert.Equal(ScopedKind.ScopedValue, parameter.
EffectiveScope
);
21264
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
21512
Assert.Equal(ScopedKind.None, p.
EffectiveScope
);
21649
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
21653
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
21657
Assert.Equal(ScopedKind.None, p.
EffectiveScope
);
21712
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
21716
Assert.Equal(ScopedKind.ScopedValue, p.
EffectiveScope
);
21720
Assert.Equal(ScopedKind.None, p.
EffectiveScope
);
Semantics\ExtensionTests.cs (1)
4305
AssertEx.Equal(ScopedKind.ScopedRef, m.GlobalNamespace.GetTypeMember("Extensions").GetTypeMembers().Single().ExtensionParameter.
EffectiveScope
);
Semantics\ParamsCollectionTests.cs (153)
9051
Assert.Equal(scope, p.
EffectiveScope
);
9057
Assert.Equal(scope, getMethod.Parameters[p.Ordinal].
EffectiveScope
);
9062
Assert.Equal(scope, setMethod.Parameters[p.Ordinal].
EffectiveScope
);
9275
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
9276
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9279
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
9280
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9283
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
9284
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9316
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
9317
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9320
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
9321
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9324
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
9325
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9368
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9369
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9370
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9422
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9423
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9424
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9480
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9481
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9482
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9484
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9485
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9486
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9537
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9538
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9539
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9541
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9542
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9543
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9607
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9608
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9609
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9611
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9612
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9613
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9695
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9696
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9697
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9699
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test1").Parameters.Single().
EffectiveScope
);
9700
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test2").Parameters.Single().
EffectiveScope
);
9701
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C3.C1.Test3").Parameters.Single().
EffectiveScope
);
9762
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9763
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9764
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9803
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9804
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9805
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9855
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9856
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9857
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9916
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
9917
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
9918
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3.Invoke").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
9963
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
9964
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
9965
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10016
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10017
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10018
Assert.NotEqual(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10071
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10072
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10073
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10075
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10076
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10077
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10127
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10128
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10129
Assert.Equal(ScopedKind.None, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10131
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10132
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10133
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10134
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test1").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10135
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test2").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10136
Assert.Equal(comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
, comp.GetMember<MethodSymbol>("C1.Test3").PartialImplementationPart.Parameters.Single().
EffectiveScope
);
10172
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10173
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
10176
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10177
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
10180
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10181
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
10214
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10215
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
10218
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10219
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
10222
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10223
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test3").Parameters.Single().
EffectiveScope
);
10256
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test1").Parameters.Single().
EffectiveScope
);
10257
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test1").Parameters.Single().
EffectiveScope
);
10260
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test2").Parameters.Single().
EffectiveScope
);
10261
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C2.Test2").Parameters.Single().
EffectiveScope
);
10264
Assert.Equal(ScopedKind.ScopedValue, comp.GetMember<MethodSymbol>("C1.Test3").Parameters.Single().
EffectiveScope
);
10265
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
);