390 references to Ref
Microsoft.CodeAnalysis (3)
Symbols\RefKind.cs (3)
52case RefKind.Ref: return "ref"; 63case RefKind.Ref: return "ref"; 74case RefKind.Ref: return "ref ";
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
514case RefKind.Ref:
IParameterSymbolExtensions.cs (1)
15case RefKind.Ref:
OperationExtensions.cs (3)
163case RefKind.Ref: 175RefKind.Ref => ValueUsageInfo.ReadableWritableReference, 212case RefKind.Ref:
SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
441if (parameter.RefKind is RefKind.Ref or RefKind.Out)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
CodeGenerationMethodSymbol.cs (1)
86return RefKind == RefKind.Ref;
CodeGenerationPropertySymbol.cs (1)
90public bool ReturnsByRef => _refKind == RefKind.Ref;
Microsoft.CodeAnalysis.CSharp (119)
Binder\Binder.ValueChecks.cs (7)
1149case RefKind.Ref: 1175case RefKind.Ref: 2197if (refKind == RefKind.Ref && mixableArguments is not null) 4641return methodRefKind == RefKind.Ref || 4647return dupRefKind == RefKind.Ref || 4663return lhsRefKind == RefKind.Ref || 4730if (field.RefKind is RefKind.Ref)
Binder\Binder_Expressions.cs (2)
4282if (analyzedArguments.RefKind(i) is (RefKind.Ref or RefKind.Out)) 4888bool isRef = refKind == RefKind.Ref;
Binder\Binder_Invocation.cs (3)
229case RefKind.Ref: 1054if (receiverParameter.RefKind == RefKind.Ref) 1067analyzedArguments.RefKinds[0] = RefKind.Ref;
Binder\Binder_Operators.cs (4)
4198var isRef = whenTrueRefKind == RefKind.Ref && whenFalseRefKind == RefKind.Ref; 4201if (whenFalseRefKind == RefKind.Ref) 4206if (whenTrueRefKind == RefKind.Ref)
Binder\Binder_Statements.cs (5)
923if (expressionRefKind == RefKind.Ref) 940else if (expressionRefKind != RefKind.Ref) 1425var isRef = refKind == RefKind.Ref; 1455if (lhsRefKind is RefKind.Ref or RefKind.Out) 3510requiredValueKind = sigRefKind == RefKind.Ref ?
Binder\ForEachLoopBinder.cs (3)
229if (getEnumeratorMethod.ParameterRefKinds is { IsDefault: false } refKinds && refKinds[0] == RefKind.Ref) 324case RefKind.Ref: 449if (elementConversionClassification.Kind != ConversionKind.Identity && IterationVariable.RefKind is RefKind.Ref or RefKind.RefReadOnly)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (7)
2196RefKind.Ref when isInterpolatedStringHandlerConversion => true, 2400Debug.Assert(refKind1 == RefKind.None || refKind1 == RefKind.Ref); 2401Debug.Assert(refKind2 == RefKind.None || refKind2 == RefKind.Ref); 2414else if (refKind1 == RefKind.Ref) 3201if (allowRefOmittedArguments && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.InAttributeArgument) 3668if (parameterRefKind == RefKind.Ref) 3679&& parameterRefKind == RefKind.Ref
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1160if (refParameter == RefKind.Ref || refParameter == RefKind.In)
CodeGen\EmitAddress.cs (2)
116if (methodRefKind == RefKind.Ref || 128if (funcPtrRefKind == RefKind.Ref ||
CodeGen\Optimizer.cs (2)
1056Debug.Assert(((BoundCall)lhs).Method.RefKind == RefKind.Ref, "only ref returning methods are assignable"); 1060Debug.Assert(((BoundFunctionPointerInvocation)lhs).FunctionPointer.Signature.RefKind == RefKind.Ref, "only ref returning function pointers are assignable");
FlowAnalysis\AbstractFlowPass.cs (3)
1349WriteArgument(receiverOpt, RefKind.Ref, method: null); 1985? RefKind.Ref 3110WriteArgument(operand, RefKind.Ref, method: null);
FlowAnalysis\DefiniteAssignment.cs (1)
2405if (refKind == RefKind.Ref)
FlowAnalysis\NullableWalker.cs (5)
1208if (refKind != RefKind.Out && refKind != RefKind.Ref) 2313if (refKind == RefKind.Ref) 6502case RefKind.Ref: 6606case RefKind.Ref: 6709case RefKind.Ref:
Lowering\ClosureConversion\ClosureConversion.cs (1)
910refkindsBuilder.AddMany(RefKind.Ref, frameCount);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
579if (refKinds[i] is not (RefKind.Ref or RefKind.Out))
Lowering\LocalRewriter\LocalRewriter_Call.cs (8)
457refKind = rewrittenReceiver.Type.IsValueType || rewrittenReceiver.Type.Kind == SymbolKind.TypeParameter ? RefKind.Ref : RefKind.None; 471refKind = RefKind.Ref; 709var intermediateRef = _factory.Local(_factory.SynthesizedLocal(receiverType, refKind: RefKind.Ref)); 905else if (paramRefKind == RefKind.Ref) 914refKindsBuilder[i] = RefKind.Ref; 1493if (argRefKind != RefKind.None || paramRefKind != RefKind.Ref) 1502if (localRefKind == RefKind.Ref) 1520argsRefKindsBuilder[argIndex] = RefKind.Ref;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
204var receiverTemp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp, refKind: variableRepresentsLocation ? RefKind.Ref : RefKind.None); 440var variableTemp = _factory.StoreToTemp(arrayAccess, out assignmentToTemp, refKind: RefKind.Ref); 518var temp = _factory.StoreToTemp(VisitExpression(arguments[i]), out assignmentToTemp, indexerAccess.ArgumentRefKindsOpt.RefKinds(i) != RefKind.None ? RefKind.Ref : RefKind.None); 742var variableTemp = _factory.StoreToTemp(rewrittenVariable, out assignmentToTemp2, refKind: RefKind.Ref);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
220Debug.Assert(!isLeftOfAssignment || node.IndexerOrSliceAccess.GetRefKind() == RefKind.Ref); 272receiver.Type.IsReferenceType ? RefKind.None : RefKind.Ref); 580receiver.Type.IsReferenceType ? RefKind.None : RefKind.Ref);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
165if (addMethod.Parameters[0].RefKind == RefKind.Ref) 171builder[0] = RefKind.Ref;
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
562return RefKind.Ref; 806static RefKind getRefKind(RefKind refKind) => refKind == RefKind.None ? RefKind.None : RefKind.Ref; 828Debug.Assert(refKind == RefKind.None || refKind == RefKind.Ref || refKind == RefKind.Out, "unexpected refKind in dynamic"); 835else if (refKind == RefKind.Ref)
Lowering\SpillSequenceSpiller.cs (9)
371var left = Spill(builder, assignment.Left, RefKind.Ref); 372var right = Spill(builder, assignment.Right, RefKind.Ref); 467Left: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } receiverRefLocal }, 470ValueTypeReceiver: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } } valueTypeReceiver, 480Right: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } originalReceiverReference } 836left = Spill(leftBuilder, VisitExpression(ref leftBuilder, left), RefKind.Ref); 883receiver = Spill(leftBuilder, VisitExpression(ref leftBuilder, field.ReceiverOpt), RefKind.Ref); 1005result = receiver.Type.IsReadOnly ? RefKind.In : RefKind.Ref; 1208receiver = Spill(receiverBuilder, receiver, RefKind.Ref);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
525var sacrificialTemp = F.SynthesizedLocal(type, refKind: RefKind.Ref);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
150builder.Add(SynthesizedParameterSymbol.Create(this, this.TypeMap.SubstituteType(extra), ordinal++, RefKind.Ref));
Lowering\SyntheticBoundNodeFactory.cs (2)
1527refKind = RefKind.Ref; 1545case RefKind.Ref:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
40case RefKind.Ref: 1138case RefKind.Ref:
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (3)
53refKind = RefKind.Ref; 551RefKind = getRefKind(retInfo, RefCustomModifiers, RefKind.RefReadOnly, RefKind.Ref); 586true => RefKind.Ref,
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
201=> refKind == RefKind.None ? RefKind.None : RefKind.Ref;
Symbols\MemberSignatureComparer.cs (1)
226/// the difference between <see cref="RefKind.Out"/> and <see cref="RefKind.Ref"/>.
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
324moduleSymbol.Module.HasIsReadOnlyAttribute(_handle) ? RefKind.RefReadOnly : RefKind.Ref :
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1085case RefKind.Ref: 1113case RefKind.Ref:
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
253refKind = isByRef ? RefKind.Ref : RefKind.None; 289refKind = RefKind.Ref;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
218_refKind = RefKind.Ref;
Symbols\MethodSymbol.cs (1)
214return this.RefKind == RefKind.Ref;
Symbols\NamedTypeSymbol.cs (1)
366if ((thisParam.RefKind == RefKind.Ref && !thisParam.Type.IsValueType) ||
Symbols\ParameterSymbol.cs (1)
155(refKind == RefKind.Ref && ContainingSymbol.ContainingType.IsComImport));
Symbols\PropertySymbol.cs (1)
70public bool ReturnsByRef { get { return this.RefKind == RefKind.Ref; } }
Symbols\PropertySymbolExtensions.cs (1)
68if (param.RefKind == RefKind.Ref || param.RefKind == RefKind.Out)
Symbols\RefKindExtensions.cs (2)
26return RefKind.Ref; 42case RefKind.Ref:
Symbols\Source\ParameterHelpers.cs (3)
181if (!allowRefOrOut && (refKind == RefKind.Ref || refKind == RefKind.Out)) 719if (refKind == RefKind.Ref || refKind == RefKind.Out) 912refKind = RefKind.Ref;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1393case RefKind.Ref:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (6)
1279overrideMethod.RefKind == RefKind.Ref ? RefKind.Ref : RefKind.Out, 1351case RefKind.Ref: 1392(method.RefKind is RefKind.Ref or RefKind.RefReadOnly)) 1396else if (parameters.Any(p => (p.RefKind is RefKind.Ref or RefKind.Out) && p.Type.IsRefLikeType)) 1407int nRefParameters = parameters.Count(p => p.RefKind is RefKind.Ref or RefKind.In or RefKind.Out);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
485Debug.Assert(refKind is RefKind.None or RefKind.Ref or RefKind.RefReadOnly);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
231else if (parameter0RefKind == RefKind.Ref && !parameter0Type.Type.IsValueType)
Symbols\Source\ThisParameterSymbol.cs (1)
54return RefKind.Ref;
Symbols\Synthesized\RefKindVector.cs (2)
46(false, true) => RefKind.Ref, 57RefKind.Ref => (false, true),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
92Debug.Assert(property.RefKind is RefKind.None or RefKind.Ref or RefKind.RefReadOnly);
Syntax\SyntaxNodeExtensions.cs (2)
255: RefKind.Ref; 331refKind = RefKind.Ref;
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.RefKeyword => RefKind.Ref, 89parameter.RefKind != RefKind.Ref)
CastSimplifier.cs (3)
560if (castedSymbol is not IFieldSymbol and not ILocalSymbol and not IParameterSymbol and not IParameterSymbol { RefKind: RefKind.Ref }) 1242if (operation is IPropertyReferenceOperation { Property.RefKind: not RefKind.Ref }) 1246if (operation is IInvocationOperation { TargetMethod.RefKind: not RefKind.Ref })
ExpressionSyntaxExtensions.cs (1)
373ReducedFrom.Parameters: [{ RefKind: RefKind.Ref }, ..],
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpSyntaxGeneratorInternal.cs (1)
125RefKind.Ref => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.RefKeyword)),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (38)
CodeGen\CodeGenFunctionPointersTests.cs (11)
146(RefKind.Ref, IsArrayType(IsSpecialType(SpecialType.System_Int32))), 147(RefKind.Ref, IsTypeName("C")), 148(RefKind.Ref, IsSpecialType(SpecialType.System_String))); 170(RefKind.Ref, IsArrayType(IsSpecialType(SpecialType.System_Int32))), 650(RefKind.Ref, 746(RefKind.Ref, IsSpecialType(SpecialType.System_Boolean)), 747(RefKind.Ref, IsSpecialType(SpecialType.System_Int32))); 7665parameterRefCustomModifiers: default, returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7674parameterRefCustomModifiers: default, returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7750returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, 7759returnRefKind: RefKind.Ref, parameterTypes: ImmutableArray<TypeWithAnnotations>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty,
CodeGen\CodeGenLocalFunctionTests.cs (11)
3136Assert.Equal(RefKind.Ref, goo.Parameters[0].RefKind); 3161Assert.Equal(RefKind.Ref, goo.Parameters[0].RefKind); 3162Assert.Equal(RefKind.Ref, bar.Parameters[0].RefKind); 3163Assert.Equal(RefKind.Ref, bar.Parameters[1].RefKind); 3214Assert.Equal(RefKind.Ref, inner.Parameters[0].RefKind); 3215Assert.Equal(RefKind.Ref, inner.Parameters[1].RefKind); 3216Assert.Equal(RefKind.Ref, middle.Parameters[0].RefKind); 3279Assert.Equal(RefKind.Ref, goo.Parameters[0].RefKind); 3318Assert.Equal(RefKind.Ref, goo.Parameters[1].RefKind); 3319Assert.Equal(RefKind.Ref, bar.Parameters[1].RefKind); 3320Assert.Equal(RefKind.Ref, bar.Parameters[2].RefKind);
CodeGen\CodeGenReadonlyStructTests.cs (8)
868Assert.Equal(RefKind.Ref, namedType.GetMethod("M1").ThisParameter.RefKind); 869Assert.Equal(RefKind.Ref, namedType.GetMethod("ToString").ThisParameter.RefKind); 1032Assert.Equal(RefKind.Ref, namedType.GetMethod("M1").ThisParameter.RefKind); 1033Assert.Equal(RefKind.Ref, namedType.GetMethod("ToString").ThisParameter.RefKind); 1571verifyReadOnly(s1.GetMethod("M1"), false, RefKind.Ref); 1575verifyReadOnly(s1.GetProperty("P1").SetMethod, false, RefKind.Ref); 1580verifyReadOnly(s1.GetProperty("P3").SetMethod, false, RefKind.Ref); 1582verifyReadOnly(s1.GetProperty("P4").GetMethod, false, RefKind.Ref);
Emit\EmitCustomModifiers.cs (3)
605Assert.Equal(RefKind.Ref, parameter.RefKind); 661Assert.Equal(RefKind.Ref, baseParameter.RefKind); 669Assert.Equal(RefKind.Ref, derivedParameter.RefKind);
Emit\EmitMetadataTests.cs (2)
448Assert.Equal(RefKind.Ref, parameter1.RefKind); 2026Assert.Equal(RefKind.Ref, m.Parameters[1].RefKind);
Emit\NoPiaEmbedTypes.cs (3)
1522Assert.Equal(RefKind.Ref, param.RefKind); 1532Assert.Equal(RefKind.Ref, param.RefKind); 1537Assert.Equal(RefKind.Ref, param.RefKind);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Attributes\AttributeTests_RefReadOnly.cs (2)
2371Assert.Equal(RefKind.Ref, method.Parameters[1].RefKind); 2417Assert.Equal(RefKind.Ref, method.Parameters[0].RefKind);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
CSharpEESymbolProvider.cs (1)
49refKind = info.IsByRef ? RefKind.Ref : RefKind.None;
CSharpInstructionDecoder.cs (1)
109case RefKind.Ref:
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.cs (1)
786Assert.Equal(RefKind.Ref, parameter.RefKind);
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
101refKind: dataFlow.WrittenInside.Contains(capture) ? RefKind.Ref : RefKind.None,
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
319RefKind.Ref => "ref ",
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
94RefKind.Ref => "ref ",
Completion\Providers\ContextVariableArgumentProvider.cs (1)
38case RefKind.Ref:
GenerateMember\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
45=> _invocationExpression.IsParentKind(SyntaxKind.RefExpression) ? RefKind.Ref : RefKind.None;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (119)
Semantics\LambdaTests.cs (1)
6865Assert.Equal(RefKind.Ref, lambdas[0].Parameters[0].RefKind);
Semantics\RefExtensionMethodsTests.cs (2)
2148Assert.Equal(RefKind.Ref, symbol.RefKind); 2186Assert.Equal(RefKind.Ref, symbol.RefKind);
Semantics\RefFieldTests.cs (116)
146VerifyFieldSymbol(comp.GetMember<FieldSymbol>("S.F1"), "ref T S<T>.F1", RefKind.Ref, new string[0]); 152VerifyFieldSymbol(comp.GetMember<FieldSymbol>("S.F1"), "ref T S<T>.F1", RefKind.Ref, new string[0]); 172VerifyFieldSymbol(comp.GetMember<FieldSymbol>("S.F"), "ref T S<T>.F", RefKind.Ref, new string[0]); 177VerifyFieldSymbol(comp.GetMember<FieldSymbol>("S.F"), "ref T S<T>.F", RefKind.Ref, new string[0]); 208VerifyFieldSymbol(comp.GetMember<FieldSymbol>("S.F"), "ref T S<T>.F", RefKind.Ref, new string[0]); 218VerifyFieldSymbol(comp.GetMember<FieldSymbol>("S.F"), "ref T S<T>.F", RefKind.Ref, new string[0]); 316VerifyFieldSymbol(field, "ref modopt(System.SByte) modopt(System.Object) System.Int32 A<System.Int32>.F", RefKind.Ref, new[] { "System.SByte", "System.Object" }); 509VerifyFieldSymbol(tupleType.GetField("Item1"), "ref System.Int32 (System.Int32, System.Object).Item1", RefKind.Ref, new string[0] { }); 510VerifyFieldSymbol(tupleType.GetField("Item2"), "ref modopt(System.Object) modopt(System.SByte) System.Object (System.Int32, System.Object).Item2", RefKind.Ref, new[] { "System.Object", "System.SByte" }); 10473VerifyParameterSymbol(parameters[0], "ref R x2", RefKind.Ref, ScopedKind.None); 10474VerifyParameterSymbol(parameters[1], "scoped ref R y2", RefKind.Ref, ScopedKind.ScopedRef); 10518VerifyParameterSymbol(comp.GetMember<NamedTypeSymbol>("A").Constructors.Single(c => !c.IsImplicitlyDeclared).Parameters[0], "scoped ref T t", RefKind.Ref, ScopedKind.ScopedRef); 10580VerifyParameterSymbol(localFunctions[1].Parameters[0], "ref System.Int32 x2", RefKind.Ref, ScopedKind.None); 10581VerifyParameterSymbol(localFunctions[1].Parameters[1], "scoped ref System.Int32 y2", RefKind.Ref, ScopedKind.ScopedRef); 10586VerifyParameterSymbol(localFunctions[4].Parameters[0], "ref R x5", RefKind.Ref, ScopedKind.None); 10587VerifyParameterSymbol(localFunctions[4].Parameters[1], "scoped ref R y5", RefKind.Ref, ScopedKind.ScopedRef); 10653verifyParameter(delegateTypesAndLambdas[1], 0, "ref System.Int32", "x2", RefKind.Ref, ScopedKind.None, false); 10654verifyParameter(delegateTypesAndLambdas[1], 1, "scoped ref System.Int32", "y2", RefKind.Ref, ScopedKind.ScopedRef, false); 10660verifyParameter(delegateTypesAndLambdas[4], 0, "ref R", "x5", RefKind.Ref, ScopedKind.None, false); 10661verifyParameter(delegateTypesAndLambdas[4], 1, "scoped ref R", "y5", RefKind.Ref, ScopedKind.ScopedRef, false); 10709VerifyParameterSymbol(comp.GetMember<NamedTypeSymbol>("D2").DelegateInvokeMethod.Parameters[0], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 10775VerifyParameterSymbol(methods[1].Parameters[0], "ref R", RefKind.Ref, ScopedKind.None); 10776VerifyParameterSymbol(methods[1].Parameters[1], "ref System.Int32", RefKind.Ref, ScopedKind.None); 10777VerifyParameterSymbol(methods[2].Parameters[0], "ref R", RefKind.Ref, ScopedKind.None); 10797VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F3").Parameters[0], "scoped ref R r", RefKind.Ref, ScopedKind.ScopedRef); 10908VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F2").Parameters[0], "ref scoped s", RefKind.Ref, ScopedKind.None); 10909VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F4").Parameters[0], "scoped ref scoped s", RefKind.Ref, ScopedKind.ScopedRef); 11023VerifyParameterSymbol(parameters[1], "ref R b", RefKind.Ref, ScopedKind.None); 11059VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.ReturnRef").Parameters[0], "scoped ref R r", RefKind.Ref, ScopedKind.ScopedRef); 11103VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S1.F1").ThisParameter, "ref S1 this", RefKind.Ref, ScopedKind.ScopedRef); 11106VerifyParameterSymbol(comp.GetMember<MethodSymbol>("R1.F1").ThisParameter, "ref R1 this", RefKind.Ref, ScopedKind.ScopedRef); 11117VerifyParameterSymbol(thisParameter, "ref S1 this", RefKind.Ref, ScopedKind.ScopedRef); 11156VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Extensions.F3").Parameters[0], "scoped ref T t", RefKind.Ref, ScopedKind.ScopedRef); 11572VerifyLocalSymbol(locals[1], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 11575VerifyLocalSymbol(locals[4], "scoped ref R r21", RefKind.Ref, ScopedKind.ScopedRef); 11709VerifyLocalSymbol(locals[1], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 12662VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.None); 12663VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.None); 12665VerifyLocalSymbol(locals[4], "scoped ref scoped s5", RefKind.Ref, ScopedKind.ScopedRef); 12666VerifyLocalSymbol(locals[5], "scoped ref scoped s6", RefKind.Ref, ScopedKind.ScopedRef); 12717VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.None); 12718VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.None); 12720VerifyLocalSymbol(locals[4], "scoped ref scoped s5", RefKind.Ref, ScopedKind.ScopedRef); 12721VerifyLocalSymbol(locals[5], "scoped ref scoped s6", RefKind.Ref, ScopedKind.ScopedRef); 12956VerifyLocalSymbol(locals[1], "scoped ref R<System.Int32> r3", RefKind.Ref, ScopedKind.ScopedRef); 13020VerifyLocalSymbol(locals[1], "scoped ref R<System.Int32> r3", RefKind.Ref, ScopedKind.ScopedRef); 13225VerifyLocalSymbol(locals[0], "ref System.Int32 a", RefKind.Ref, ScopedKind.None); 13226VerifyLocalSymbol(locals[1], "ref System.Int32 b", RefKind.Ref, ScopedKind.None); 13865VerifyLocalSymbol(locals[0], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 13866VerifyLocalSymbol(locals[1], "scoped ref R r5", RefKind.Ref, ScopedKind.ScopedRef); 13907VerifyLocalSymbol(locals[0], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 13908VerifyLocalSymbol(locals[1], "scoped ref R r5", RefKind.Ref, ScopedKind.ScopedRef); 14037VerifyLocalSymbol(locals[4], "ref R r31", RefKind.Ref, ScopedKind.None); 14038VerifyLocalSymbol(locals[5], "ref R r32", RefKind.Ref, ScopedKind.None); 14039VerifyLocalSymbol(locals[6], "scoped ref R r41", RefKind.Ref, ScopedKind.ScopedRef); 14040VerifyLocalSymbol(locals[7], "scoped ref R r42", RefKind.Ref, ScopedKind.ScopedRef); 14109VerifyLocalSymbol(locals[1], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 14562VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.None); 14563VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.None); 14565VerifyLocalSymbol(locals[4], "scoped ref scoped s5", RefKind.Ref, ScopedKind.ScopedRef); 14566VerifyLocalSymbol(locals[5], "scoped ref scoped s6", RefKind.Ref, ScopedKind.ScopedRef); 14649VerifyLocalSymbol(locals[1], "scoped ref R<System.Int32> r3", RefKind.Ref, ScopedKind.ScopedRef); 15268VerifyParameterSymbol(method.Parameters[0], "ref System.Int32 i", RefKind.Ref, ScopedKind.None); 17403VerifyParameterSymbol(delegateInvokeMethods[1].Parameters[1], "scoped ref System.Int32 arg2", RefKind.Ref, ScopedKind.ScopedRef); 22296VerifyParameterSymbol(type.GetMethod("Get").ThisParameter, "ref R1<System.Int32> this", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 22297VerifyParameterSymbol(type.GetMethod("get_Item").ThisParameter, "ref R1<System.Int32> this", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 22301VerifyParameterSymbol(type.GetMethod("Get").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22302VerifyParameterSymbol(type.GetMethod("get_Item").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22365VerifyParameterSymbol(type.GetMethod("Get").ThisParameter, "ref R1<System.Int32> this", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 22366VerifyParameterSymbol(type.GetMethod("get_Item").ThisParameter, "ref R1<System.Int32> this", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 22371VerifyParameterSymbol(type.GetMethod("Get").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22372VerifyParameterSymbol(type.GetMethod("get_Item").ThisParameter, "ref R2<System.Int32> this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22519VerifyParameterSymbol(parameters[1], "scoped ref R x", RefKind.Ref, ScopedKind.ScopedRef); 22520VerifyParameterSymbol(parameters[2], "ref R y", RefKind.Ref, ScopedKind.None); 22582VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "ref R<System.Int32> r1", RefKind.Ref, ScopedKind.None); 22583VerifyParameterSymbol(baseType.GetMethod("F2A").Parameters[0], "scoped ref R<System.Int32> r2", RefKind.Ref, ScopedKind.ScopedRef); 22671VerifyParameterSymbol(type.GetMethod("F1").Parameters[0], "ref R<T> r1", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22755VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "ref R<System.Int32> r4", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22930VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "ref System.Int32 t1", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 22931VerifyParameterSymbol(baseType.GetMethod("F2A").Parameters[0], "scoped ref System.Int32 t2", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 22932VerifyParameterSymbol(baseType.GetMethod("F3A").Parameters[0], "ref System.Int32 t3", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 22933VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "ref System.Int32 t4", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 23115VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F2").Parameters[0], "ref R<T> r2", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 23399VerifyParameterSymbol(lambdas[0].Parameters[0], "ref System.Int32 i1", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 23400VerifyParameterSymbol(lambdas[1].Parameters[0], "ref System.Int32 i2", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 23401VerifyParameterSymbol(lambdas[2].Parameters[0], "ref System.Object o1", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 23402VerifyParameterSymbol(lambdas[3].Parameters[0], "ref System.Object o2", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 23436VerifyParameterSymbol(lambdas[0].Parameters[0], "scoped ref R<System.Int32> r1", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 23437VerifyParameterSymbol(lambdas[1].Parameters[0], "ref R<System.Int32> r2", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 23438VerifyParameterSymbol(lambdas[2].Parameters[0], "scoped ref R<System.Object> r1", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 23439VerifyParameterSymbol(lambdas[3].Parameters[0], "ref R<System.Object> r2", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 23962VerifyParameterSymbol(typeA.GetMethod("NoAttributes").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 23963VerifyParameterSymbol(typeA.GetMethod("ScopedRefOnly").Parameters[0], "scoped ref R x", RefKind.Ref, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false); 23964VerifyParameterSymbol(typeA.GetMethod("UnscopedRefOnly").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 23965VerifyParameterSymbol(typeA.GetMethod("ScopedRefAndUnscopedRef").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 24128VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S1.F1").ThisParameter, "ref S1 this", RefKind.Ref, ScopedKind.ScopedRef); 24131VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F4").Parameters[0], "ref R r4", RefKind.Ref, ScopedKind.None); 24171VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S1.F1").ThisParameter, "ref S1 this", RefKind.Ref, ScopedKind.ScopedRef); 24174VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F4").Parameters[0], "ref R r4", RefKind.Ref, ScopedKind.None); 24207verifyParameter(delegateTypesAndLambdas[2], 0, "ref R", "r3", RefKind.Ref, ScopedKind.None); 24257VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F3").Parameters[0], "ref R", RefKind.Ref, ScopedKind.None); 24315VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S.F").ThisParameter, "ref S this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 24316VerifyParameterSymbol(comp.GetMember<PropertySymbol>("S.P").GetMethod.ThisParameter, "ref S this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 24319VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F3").Parameters[0], "ref R r3", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 24934VerifyParameterSymbol(typeA.GetMethod("F1").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: false); 24935VerifyParameterSymbol(typeA.GetMethod("F2").Parameters[0], "ref R x", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true); 26296VerifyLocalSymbol(locals[1], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 26386VerifyLocalSymbol(locals[1], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 26506VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.None); 26507VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.None); 26509VerifyLocalSymbol(locals[4], "scoped ref scoped s5", RefKind.Ref, ScopedKind.ScopedRef); 26510VerifyLocalSymbol(locals[5], "scoped ref scoped s6", RefKind.Ref, ScopedKind.ScopedRef); 26607VerifyLocalSymbol(locals[1], "ref scoped s2", RefKind.Ref, ScopedKind.None); 26608VerifyLocalSymbol(locals[2], "ref scoped s3", RefKind.Ref, ScopedKind.None); 26610VerifyLocalSymbol(locals[4], "scoped ref scoped s5", RefKind.Ref, ScopedKind.ScopedRef); 26611VerifyLocalSymbol(locals[5], "scoped ref scoped s6", RefKind.Ref, ScopedKind.ScopedRef);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (39)
SymbolDisplay\SymbolDisplayTests.cs (1)
6593Assert.Equal(RefKind.Ref, local.RefKind);
Symbols\CompilationCreationTests.cs (1)
2356Assert.Equal(RefKind.Ref, x1.RefKind);
Symbols\ExtensionMethodTests.cs (2)
4071Assert.Equal(RefKind.Ref, parameter.RefKind); 4077Assert.Equal(RefKind.Ref, parameter.RefKind);
Symbols\FunctionPointerTypeSymbolTests.cs (12)
27[InlineData("ref", RefKind.Ref, "delegate*<ref System.Object>")] 114verifyRefKind(RefKind.Ref, mParams[1]); 115verifyRefKind(RefKind.Ref, mParams[2]); 119verifyRefKind(RefKind.Ref, mParams[6]); 199Assert.Equal(RefKind.Ref, firstSignature.RefKind); 472Assert.Equal(RefKind.Ref, firstParam.Parameters.Single().RefKind); 580Assert.Equal(RefKind.Ref, thirdParam.Parameters.Single().RefKind); 592Assert.Equal(RefKind.Ref, seventhParam.Parameters.Single().RefKind); 598Assert.Equal(RefKind.Ref, ninthParam.Parameters.Single().RefKind); 2059RefKind.Ref, 2126RefKind.Ref, 2185RefKind.Ref,
Symbols\InterfaceImplementationTests.cs (2)
2032Assert.Equal(RefKind.Ref, interfaceMethod.RefKind); 2033Assert.Equal(RefKind.Ref, baseMethod.RefKind);
Symbols\Metadata\MetadataMemberTests.cs (1)
284Assert.Equal(RefKind.Ref, p5.RefKind);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
276Assert.Equal(RefKind.Ref, f2.Parameters[0].RefKind);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
605Assert.Equal(RefKind.Ref, indexer.Parameters.Single().RefKind);
Symbols\Metadata\PE\LoadingMethods.cs (1)
376Assert.Equal(RefKind.Ref, byrefReturnMethod.RefKind);
Symbols\PEParameterSymbolTests.cs (2)
116Assert.Equal(RefKind.Ref, y.RefKind); 134Assert.Equal(RefKind.Ref, y2.RefKind);
Symbols\Source\DelegateTests.cs (3)
743Assert.Equal(RefKind.Ref, parameter.RefKind); 784Assert.Equal(RefKind.Ref, d.DelegateInvokeMethod.RefKind); 785Assert.Equal(RefKind.Ref, ((MethodSymbol)d.GetMembers("EndInvoke").Single()).RefKind);
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
511Assert.Equal(RefKind.Ref, p.GetMethod.RefKind);
Symbols\Source\MethodTests.cs (7)
363Assert.Equal(RefKind.Ref, p1.RefKind); 405Assert.Equal(RefKind.Ref, m.RefKind); 410Assert.Equal(RefKind.Ref, p1.RefKind); 454Assert.Equal(RefKind.Ref, p1.RefKind); 533Assert.Equal(RefKind.Ref, param.RefKind); 1759Assert.Equal(RefKind.Ref, interfaceMethod.RefKind); 1767Assert.Equal(RefKind.Ref, classMethod.RefKind);
Symbols\Source\PropertyTests.cs (1)
1793Assert.Equal(RefKind.Ref, classProperty.RefKind);
Symbols\SymbolErrorTests.cs (1)
3360Assert.Equal(RefKind.Ref, param.RefKind);
Symbols\TypeTests.cs (2)
513Assert.Equal(RefKind.Ref, p1.RefKind); 1557Assert.Equal(RefKind.Ref, paras[0].RefKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
FunctionPointerUtilities.cs (2)
287case RefKind.Ref: 317case RefKind.Ref:
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.RefKeyword => RefKind.Ref, 89parameter.RefKind != RefKind.Ref)
CastSimplifier.cs (3)
560if (castedSymbol is not IFieldSymbol and not ILocalSymbol and not IParameterSymbol and not IParameterSymbol { RefKind: RefKind.Ref }) 1242if (operation is IPropertyReferenceOperation { Property.RefKind: not RefKind.Ref }) 1246if (operation is IInvocationOperation { TargetMethod.RefKind: not RefKind.Ref })
CodeGeneration\CSharpSyntaxGenerator.cs (2)
220case RefKind.Ref: 3437RefKind.Ref => SyntaxFactory.RefType(type),
CSharpSyntaxGeneratorInternal.cs (1)
125RefKind.Ref => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.RefKeyword)),
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
373ReducedFrom.Parameters: [{ RefKind: RefKind.Ref }, ..],
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
468VerifySyntax<InvocationExpressionSyntax>(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.Argument(RefKind.Ref, Generator.IdentifierName("y"))), "x(ref y)");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeGeneration\ExpressionGenerationTests.cs (4)
397f.Argument(null, RefKind.Ref, f.IdentifierName("b"))), 411f.Argument("n2", RefKind.Ref, f.IdentifierName("b"))), 463f.Argument(null, RefKind.Ref, f.IdentifierName("b"))), 477f.Argument("n2", RefKind.Ref, f.IdentifierName("b"))),
Microsoft.CodeAnalysis.Features (4)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
514case RefKind.Ref:
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
372return parameterBehavior == ParameterBehavior.Ref ? RefKind.Ref :
GenerateMember\GenerateVariable\AbstractGenerateVariableService.cs (1)
260return RefKind.Ref;
RQName\RQNodeBuilder.cs (1)
156else if (parameter.RefKind == RefKind.Ref)
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
90if (argument.Parameter.RefKind == RefKind.Out || argument.Parameter.RefKind == RefKind.Ref)
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
78if (argument.Parameter.RefKind == RefKind.Out || argument.Parameter.RefKind == RefKind.Ref)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
71if (argument.Parameter.RefKind == RefKind.Out || argument.Parameter.RefKind == RefKind.Ref)
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\OperationTests.cs (1)
54RefKind refKind = RefKind.Ref;
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\ClsComplianceChecker.vb (1)
958builder.Add(If(parameter.IsByRef, RefKind.Ref, RefKind.None))
Symbols\MethodSymbol.vb (1)
1027Return If(Me.ReturnsByRef, RefKind.Ref, RefKind.None)
Symbols\ParameterSymbol.vb (1)
302Return If(Me.IsByRef, RefKind.Ref, RefKind.None)
Symbols\PropertySymbol.vb (1)
594Return If(Me.ReturnsByRef, RefKind.Ref, RefKind.None)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
ExpressionSyntaxExtensions.vb (1)
399method.ReducedFrom.Parameters.First().RefKind = RefKind.Ref Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.vb (1)
1135Assert.Equal(RefKind.Ref, parameter.RefKind)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
233If parameter.RefKind = RefKind.Ref Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (1)
399method.ReducedFrom.Parameters.First().RefKind = RefKind.Ref Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
426VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.Argument(RefKind.Ref, Generator.IdentifierName("y"))), "x(y)")
Microsoft.CodeAnalysis.Workspaces (7)
CodeGenerationMethodSymbol.cs (1)
86return RefKind == RefKind.Ref;
CodeGenerationPropertySymbol.cs (1)
90public bool ReturnsByRef => _refKind == RefKind.Ref;
IParameterSymbolExtensions.cs (1)
15case RefKind.Ref:
OperationExtensions.cs (3)
163case RefKind.Ref: 175RefKind.Ref => ValueUsageInfo.ReadableWritableReference, 212case RefKind.Ref:
SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
441if (parameter.RefKind is RefKind.Ref or RefKind.Out)
Microsoft.VisualStudio.LanguageServices (2)
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (1)
194case RefKind.Ref:
Progression\GraphBuilder.cs (1)
302node.SetValue<bool>(Properties.IsByReference, parameterSymbol.RefKind == RefKind.Ref);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
527if (parameter.RefKind == RefKind.Ref)
ObjectBrowser\DescriptionBuilder.cs (1)
424if (current.RefKind == RefKind.Ref)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\ExternalElements\ExternalCodeParameter.cs (1)
90if (ParameterSymbol.RefKind == RefKind.Ref)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ChangeSignature\ChangeSignatureViewModelTests.vb (1)
298Dim includedInTest = {RefKind.None, RefKind.Ref, RefKind.Out, RefKind.In, RefKind.RefReadOnly}
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
389If current.RefKind = RefKind.Ref Then