203 references to None
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationParameterSymbol.cs (1)
76
public ScopedKind ScopedKind => ScopedKind.
None
;
Microsoft.CodeAnalysis.CSharp (51)
Binder\Binder.QueryUnboundLambdaState.cs (1)
51
public override ScopedKind DeclaredScope(int index) => ScopedKind.
None
;
Binder\Binder_AnonymousTypes.cs (1)
97
ScopedKind.
None
);
Binder\Binder_Expressions.cs (4)
9196
(parameters.Any(p => p.EffectiveScope != ScopedKind.
None
) ? parameters.SelectAsArray(p => p.EffectiveScope) : default);
9230
(parameterScopes.IsDefault || parameterScopes.All(scope => scope == ScopedKind.
None
)) &&
9264
parameterScopes.IsDefault ? ScopedKind.
None
: parameterScopes[i],
9269
fieldsBuilder.Add(new AnonymousTypeField(name: "", location, returnType, returnRefKind, ScopedKind.
None
));
Binder\Binder_Lambda.cs (2)
171
var scope = ScopedKind.
None
;
217
if (scopesBuilder.Any(s => s != ScopedKind.
None
))
Binder\Binder_Query.cs (1)
817
new AnonymousTypeField(fieldName, fieldValue.Syntax.Location, TypeWithAnnotations.Create(TypeOrError(fieldValue)), RefKind.None, ScopedKind.
None
);
Binder\RefSafetyAnalysis.cs (3)
397
var scopedModifier = _useUpdatedEscapeRules ? local.Scope : ScopedKind.
None
;
398
if (scopedModifier != ScopedKind.
None
)
431
if (_useUpdatedEscapeRules && localSymbol.Scope != ScopedKind.
None
)
BoundTree\UnboundLambda.cs (3)
641
if (scope == ScopedKind.
None
&&
708
if (DeclaredScope(i) == ScopedKind.
None
&& parameterScopesBuilder[i] == ScopedKind.ScopedRef && _unboundLambda.ParameterAttributes(i).Any())
1507
return _parameterDeclaredScopes.IsDefault ? ScopedKind.
None
: _parameterDeclaredScopes[index];
CodeGen\Optimizer.cs (1)
2308
internal override ScopedKind Scope => ScopedKind.
None
;
Compilation\CSharpCompilation.cs (1)
3902
fields.Add(new AnonymousTypeField(name, location, TypeWithAnnotations.Create(type, nullableAnnotation), RefKind.None, ScopedKind.
None
));
Emitter\Model\PEModuleBuilder.cs (1)
1720
Debug.Assert(scope != ScopedKind.
None
);
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
72
internal override ScopedKind Scope => ScopedKind.
None
;
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
318
(ScopedKind.
None
, false) => true,
457
var fields = key.Fields.SelectAsArray(f => new AnonymousTypeField(f.Name, Location.None, typeWithAnnotations: default, refKind: RefKind.None, ScopedKind.
None
));
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
60
new SynthesizedDelegateInvokeMethod.ParameterDescription(TypeWithAnnotations.Create(typeParams[i]), refKinds.IsNull ? RefKind.None : refKinds[i], ScopedKind.
None
, defaultValue: null, isParams: false, hasUnscopedRefAttribute: false));
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
33
=> ParameterHelpers.IsRefScopedByDefault(this) ? ScopedKind.ScopedRef : ScopedKind.
None
;
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
248
ScopedKind scope = ScopedKind.
None
;
312
scope = ScopedKind.
None
;
Symbols\SignatureOnlyParameterSymbol.cs (1)
52
=> ParameterHelpers.IsRefScopedByDefault(this) ? ScopedKind.ScopedRef : ScopedKind.
None
;
Symbols\Source\LambdaSymbol.cs (2)
347
scope = ScopedKind.
None
;
353
scope = ScopedKind.
None
;
Symbols\Source\ParameterHelpers.cs (2)
301
if (scope == ScopedKind.
None
)
941
scope = ScopedKind.
None
;
Symbols\Source\SourceComplexParameterSymbol.cs (3)
206
if (scope != ScopedKind.
None
&&
209
return ScopedKind.
None
;
860
else if (DeclaredScope != ScopedKind.
None
)
Symbols\Source\SourceLocalSymbol.cs (2)
68
? isScoped ? ScopedKind.ScopedRef : ScopedKind.
None
69
: isScoped ? ScopedKind.ScopedValue : ScopedKind.
None
;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1482
return allowVariance && baseScope == ScopedKind.
None
;
Symbols\Source\SourceParameterSymbol.cs (1)
235
return declaredScope == ScopedKind.
None
&& ParameterHelpers.IsRefScopedByDefault(this) ?
Symbols\Source\ThisParameterSymbol.cs (3)
173
var scope = _containingType.IsStructType() ? ScopedKind.ScopedRef : ScopedKind.
None
;
174
if (scope != ScopedKind.
None
&&
177
return ScopedKind.
None
;
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
40
ordinal: 0, RefKind.None, ScopedKind.
None
, "other", Locations)),
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
49
ScopedKind.
None
,
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (2)
73
ordinal: 0, RefKind.None, ScopedKind.
None
, "left", Locations),
76
ordinal: 1, RefKind.None, ScopedKind.
None
, "right", Locations)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
45
ordinal: 0, RefKind.None, ScopedKind.
None
, "other", Locations)),
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
36
ordinal: 0, RefKind.None, ScopedKind.
None
, "obj", Locations)),
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
97
ordinal: 0, RefKind.None, ScopedKind.
None
, "builder", Locations)),
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
25
scope: ScopedKind.
None
)
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
468
) : base(container, TypeWithAnnotations.Create(type), ordinal, RefKind.None, ScopedKind.
None
, name)
Symbols\Synthesized\SynthesizedLocal.cs (1)
185
internal sealed override ScopedKind Scope => ScopedKind.
None
;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
241
ScopedKind scope = ScopedKind.
None
,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_LifetimeAnnotation.cs (1)
268
Assert.Equal(ScopedKind.
None
, parameter.EffectiveScope);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EELocalSymbolBase.cs (1)
95
internal override ScopedKind Scope => ScopedKind.
None
;
Symbols\EEMethodSymbol.cs (1)
215
return SynthesizedParameterSymbol.Create(this, sourceParameter.TypeWithAnnotations, ordinal, sourceParameter.RefKind, name, ScopedKind.
None
, refCustomModifiers: sourceParameter.RefCustomModifiers);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (145)
Semantics\RefFieldTests.cs (145)
10469
VerifyParameterSymbol(parameters[0], "R x1", RefKind.None, ScopedKind.
None
);
10473
VerifyParameterSymbol(parameters[0], "ref R x2", RefKind.Ref, ScopedKind.
None
);
10477
VerifyParameterSymbol(parameters[0], "in R x3", RefKind.In, ScopedKind.
None
);
10481
VerifyParameterSymbol(parameters[0], "out R x4", RefKind.Out, useUpdatedEscapeRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
10578
VerifyParameterSymbol(localFunctions[0].Parameters[0], "R x1", RefKind.None, ScopedKind.
None
);
10580
VerifyParameterSymbol(localFunctions[1].Parameters[0], "ref System.Int32 x2", RefKind.Ref, ScopedKind.
None
);
10582
VerifyParameterSymbol(localFunctions[2].Parameters[0], "in System.Int32 x3", RefKind.In, ScopedKind.
None
);
10584
VerifyParameterSymbol(localFunctions[3].Parameters[0], "out System.Int32 x4", RefKind.Out, useUpdatedEscapeRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
10586
VerifyParameterSymbol(localFunctions[4].Parameters[0], "ref R x5", RefKind.Ref, ScopedKind.
None
);
10588
VerifyParameterSymbol(localFunctions[5].Parameters[0], "in R x6", RefKind.In, ScopedKind.
None
);
10590
VerifyParameterSymbol(localFunctions[6].Parameters[0], "out R x7", RefKind.Out, useUpdatedEscapeRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
10651
verifyParameter(delegateTypesAndLambdas[0], 0, "R", "x1", RefKind.None, ScopedKind.
None
, false);
10653
verifyParameter(delegateTypesAndLambdas[1], 0, "ref System.Int32", "x2", RefKind.Ref, ScopedKind.
None
, false);
10655
verifyParameter(delegateTypesAndLambdas[2], 0, "in System.Int32", "x3", RefKind.In, ScopedKind.
None
, false);
10657
verifyParameter(delegateTypesAndLambdas[3], 0, "out System.Int32", "x4", RefKind.Out, useUpdatedEscapeRules ? ScopedKind.ScopedRef : ScopedKind.
None
, false);
10659
verifyParameter(delegateTypesAndLambdas[3], 2, "out System.Int32", "z4", RefKind.Out, ScopedKind.
None
, true);
10660
verifyParameter(delegateTypesAndLambdas[4], 0, "ref R", "x5", RefKind.Ref, ScopedKind.
None
, false);
10662
verifyParameter(delegateTypesAndLambdas[5], 0, "in R", "x6", RefKind.In, ScopedKind.
None
, false);
10664
verifyParameter(delegateTypesAndLambdas[6], 0, "out R", "x7", RefKind.Out, useUpdatedEscapeRules ? ScopedKind.ScopedRef : ScopedKind.
None
, false);
10774
VerifyParameterSymbol(methods[0].Parameters[0], "R", RefKind.None, ScopedKind.
None
);
10775
VerifyParameterSymbol(methods[1].Parameters[0], "ref R", RefKind.Ref, ScopedKind.
None
);
10776
VerifyParameterSymbol(methods[1].Parameters[1], "ref System.Int32", RefKind.Ref, ScopedKind.
None
);
10777
VerifyParameterSymbol(methods[2].Parameters[0], "ref R", RefKind.Ref, ScopedKind.
None
);
10906
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F0").Parameters[0], "scoped s", RefKind.None, ScopedKind.
None
);
10908
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F2").Parameters[0], "ref scoped s", RefKind.Ref, ScopedKind.
None
);
10910
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F5").Parameters[0], "in scoped s", RefKind.In, ScopedKind.
None
);
10942
VerifyParameterSymbol(lambdas[0].Parameters[0], "R r1", RefKind.None, ScopedKind.
None
);
10943
VerifyParameterSymbol(lambdas[1].Parameters[0], "R r2", RefKind.None, ScopedKind.
None
);
11022
VerifyParameterSymbol(parameters[0], "R a", RefKind.None, ScopedKind.
None
);
11023
VerifyParameterSymbol(parameters[1], "ref R b", RefKind.Ref, ScopedKind.
None
);
11024
VerifyParameterSymbol(parameters[2], "in R c", RefKind.In, ScopedKind.
None
);
11100
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("C..ctor").ThisParameter, "C this", RefKind.None, ScopedKind.
None
);
11101
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("C.F1").ThisParameter, "C this", RefKind.None, ScopedKind.
None
);
11153
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Extensions.F0").Parameters[0], "R<System.Object> r", RefKind.None, ScopedKind.
None
);
11155
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Extensions.F2").Parameters[0], "scoped", RefKind.None, ScopedKind.
None
);
11430
verifyValueParameter(comp.GetMember<PropertySymbol>("R2.P2"), "R1 value", RefKind.None, ScopedKind.
None
);
11431
verifyValueParameter(comp.GetMember<PropertySymbol>("R2.P3"), "R1 value", RefKind.None, ScopedKind.
None
);
12661
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
12662
VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.
None
);
12663
VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.
None
);
12716
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
12717
VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.
None
);
12718
VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.
None
);
12775
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
12776
VerifyLocalSymbol(locals[2], "scoped s3", RefKind.None, ScopedKind.
None
);
12820
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
12821
VerifyLocalSymbol(locals[1], "scoped s3", RefKind.None, ScopedKind.
None
);
12847
VerifyLocalSymbol(locals[0], "System.Boolean scoped", RefKind.None, ScopedKind.
None
);
12872
VerifyLocalSymbol(locals[0], "System.Boolean scoped", RefKind.None, ScopedKind.
None
);
12892
VerifyLocalSymbol(locals[0], "System.Boolean scoped", RefKind.None, ScopedKind.
None
);
12914
VerifyLocalSymbol(locals[0], "System.Boolean scoped", RefKind.None, ScopedKind.
None
);
13225
VerifyLocalSymbol(locals[0], "ref System.Int32 a", RefKind.Ref, ScopedKind.
None
);
13226
VerifyLocalSymbol(locals[1], "ref System.Int32 b", RefKind.Ref, ScopedKind.
None
);
14032
VerifyLocalSymbol(locals[0], "R r11", RefKind.None, ScopedKind.
None
);
14033
VerifyLocalSymbol(locals[1], "R r12", RefKind.None, ScopedKind.
None
);
14037
VerifyLocalSymbol(locals[4], "ref R r31", RefKind.Ref, ScopedKind.
None
);
14038
VerifyLocalSymbol(locals[5], "ref R r32", RefKind.Ref, ScopedKind.
None
);
14561
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
14562
VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.
None
);
14563
VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.
None
);
14587
VerifyLocalSymbol(locals[0], "System.Boolean scoped", RefKind.None, ScopedKind.
None
);
15268
VerifyParameterSymbol(method.Parameters[0], "ref System.Int32 i", RefKind.Ref, ScopedKind.
None
);
17401
VerifyParameterSymbol(delegateInvokeMethods[0].Parameters[0], "R arg1", RefKind.None, ScopedKind.
None
);
22301
VerifyParameterSymbol(type.GetMethod("Get").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22302
VerifyParameterSymbol(type.GetMethod("get_Item").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22371
VerifyParameterSymbol(type.GetMethod("Get").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22372
VerifyParameterSymbol(type.GetMethod("get_Item").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22520
VerifyParameterSymbol(parameters[2], "ref R y", RefKind.Ref, ScopedKind.
None
);
22582
VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "ref R<System.Int32> r1", RefKind.Ref, ScopedKind.
None
);
22671
VerifyParameterSymbol(type.GetMethod("F1").Parameters[0], "ref R<T> r1", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22672
VerifyParameterSymbol(type.GetMethod("F2").Parameters[0], "out T t2", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22673
VerifyParameterSymbol(type.GetMethod("F3").Parameters[0], "in R<T> t3", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22674
VerifyParameterSymbol(type.GetMethod("F4").Parameters[0], "R<T> t4", RefKind.None, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22755
VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "ref R<System.Int32> r4", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22807
VerifyParameterSymbol(parameters[2], "out System.Int32 y", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22867
VerifyParameterSymbol(baseType.GetMethod("F3A").Parameters[0], "out System.Int32 t3", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22930
VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "ref System.Int32 t1", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
22932
VerifyParameterSymbol(baseType.GetMethod("F3A").Parameters[0], "ref System.Int32 t3", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22933
VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "ref System.Int32 t4", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22996
VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "in System.Int32 t1", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
22998
VerifyParameterSymbol(baseType.GetMethod("F3A").Parameters[0], "in System.Int32 t3", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
22999
VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "in System.Int32 t4", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23086
VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "R<System.Int32> r1", RefKind.None, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
23088
VerifyParameterSymbol(baseType.GetMethod("F3A").Parameters[0], "R<System.Int32> r3", RefKind.None, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23089
VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "R<System.Int32> r4", RefKind.None, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23114
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F1").Parameters[0], "R<T> r1", RefKind.None, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23115
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F2").Parameters[0], "ref R<T> r2", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23116
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F3").Parameters[0], "in R<T> r3", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23117
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F4").Parameters[0], "out R<T> r4", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23364
VerifyParameterSymbol(lambdas[1].Parameters[0], "out System.Int32 i2", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23366
VerifyParameterSymbol(lambdas[3].Parameters[0], "out System.Object o2", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23399
VerifyParameterSymbol(lambdas[0].Parameters[0], "ref System.Int32 i1", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
23400
VerifyParameterSymbol(lambdas[1].Parameters[0], "ref System.Int32 i2", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23401
VerifyParameterSymbol(lambdas[2].Parameters[0], "ref System.Object o1", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
23402
VerifyParameterSymbol(lambdas[3].Parameters[0], "ref System.Object o2", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23437
VerifyParameterSymbol(lambdas[1].Parameters[0], "ref R<System.Int32> r2", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
23439
VerifyParameterSymbol(lambdas[3].Parameters[0], "ref R<System.Object> r2", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
23862
VerifyParameterSymbol(typeA.GetMethod("UnscopedRefOnly").Parameters[0], "out System.Int32 i", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23863
VerifyParameterSymbol(typeA.GetMethod("ScopedRefAndUnscopedRef").Parameters[0], "out System.Int32 i", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23962
VerifyParameterSymbol(typeA.GetMethod("NoAttributes").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
23964
VerifyParameterSymbol(typeA.GetMethod("UnscopedRefOnly").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
23965
VerifyParameterSymbol(typeA.GetMethod("ScopedRefAndUnscopedRef").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24070
VerifyParameterSymbol(typeA.GetMethod("NoAttributes").Parameters[0], "in R x", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
24072
VerifyParameterSymbol(typeA.GetMethod("UnscopedRefOnly").Parameters[0], "in R x", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24073
VerifyParameterSymbol(typeA.GetMethod("ScopedRefAndUnscopedRef").Parameters[0], "in R x", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24130
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F3").Parameters[0], "out System.Int32 i3", RefKind.Out, useUpdatedRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
24131
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F4").Parameters[0], "ref R r4", RefKind.Ref, ScopedKind.
None
);
24132
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F5").Parameters[0], "in R r5", RefKind.In, ScopedKind.
None
);
24173
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F3").Parameters[0], "out System.Int32 i3", RefKind.Out, useUpdatedRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
24174
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F4").Parameters[0], "ref R r4", RefKind.Ref, ScopedKind.
None
);
24175
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F5").Parameters[0], "in R r5", RefKind.In, ScopedKind.
None
);
24205
verifyParameter(delegateTypesAndLambdas[0], 0, "out System.Int32", "i1", RefKind.Out, useUpdatedRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
24206
verifyParameter(delegateTypesAndLambdas[1], 0, "R", "r2", RefKind.None, ScopedKind.
None
);
24207
verifyParameter(delegateTypesAndLambdas[2], 0, "ref R", "r3", RefKind.Ref, ScopedKind.
None
);
24208
verifyParameter(delegateTypesAndLambdas[3], 0, "in R", "r4", RefKind.In, ScopedKind.
None
);
24209
verifyParameter(delegateTypesAndLambdas[4], 0, "out R", "r5", RefKind.Out, useUpdatedRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
24255
VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F1").Parameters[0], "out modreq(System.Runtime.InteropServices.OutAttribute) System.Int32", RefKind.Out, useUpdatedRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
24256
VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F2").Parameters[0], "R", RefKind.None, ScopedKind.
None
);
24257
VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F3").Parameters[0], "ref R", RefKind.Ref, ScopedKind.
None
);
24258
VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F4").Parameters[0], "in modreq(System.Runtime.InteropServices.InAttribute) R", RefKind.In, ScopedKind.
None
);
24259
VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F5").Parameters[0], "out modreq(System.Runtime.InteropServices.OutAttribute) R", RefKind.Out, useUpdatedRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
24315
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S.F").ThisParameter, "ref S this", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24316
VerifyParameterSymbol(comp.GetMember<PropertySymbol>("S.P").GetMethod.ThisParameter, "ref S this", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24317
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F1").Parameters[0], "out System.Int32 i1", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24318
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F2").Parameters[0], "R r2", RefKind.None, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24319
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F3").Parameters[0], "ref R r3", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24320
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F4").Parameters[0], "in R r4", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24321
VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F5").Parameters[0], "out R r5", RefKind.Out, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24934
VerifyParameterSymbol(typeA.GetMethod("F1").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
24935
VerifyParameterSymbol(typeA.GetMethod("F2").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
24936
VerifyParameterSymbol(typeA.GetMethod("F3").Parameters[0], "in R x", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: false);
24937
VerifyParameterSymbol(typeA.GetMethod("F4").Parameters[0], "in R x", RefKind.In, ScopedKind.
None
, expectedHasUnscopedRefAttribute: true);
25675
VerifyParameterSymbol(method.Parameters[0], "out System.Int32 i", RefKind.Out, version == 11 ? ScopedKind.ScopedRef : ScopedKind.
None
);
25714
VerifyParameterSymbol(method.Parameters[0], "out System.Int32 i", RefKind.Out, ScopedKind.
None
);
25753
VerifyParameterSymbol(method.Parameters[0], "out System.Int32 i", RefKind.Out, ScopedKind.
None
);
25803
VerifyParameterSymbol(method.Parameters[0], "out T t", RefKind.Out, expectedUseUpdatedEscapeRules ? ScopedKind.ScopedRef : ScopedKind.
None
);
26039
Assert.Equal(ScopedKind.
None
, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope);
26091
Assert.Equal(ScopedKind.
None
, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope);
26143
Assert.Equal(ScopedKind.
None
, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope);
26505
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
26506
VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.
None
);
26507
VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.
None
);
26606
VerifyLocalSymbol(locals[0], "scoped s1", RefKind.None, ScopedKind.
None
);
26607
VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.
None
);
26608
VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.
None
);
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ParameterSymbol.vb (1)
308
Return ScopedKind.
None
Symbols\Source\LocalSymbol.vb (1)
306
Return ScopedKind.
None
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationParameterSymbol.cs (1)
76
public ScopedKind ScopedKind => ScopedKind.
None
;