6 writes to RefKind
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (2)
312RefKind = RefKind.Out, // We'll treat it as a separate out parameter. 326RefKind = RefKind.Out, // We'll treat it as a separate out parameter.
Microsoft.Interop.SourceGeneration (4)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
217RefKind = CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind)
SignatureContext.cs (2)
181RefKind = nativeIndex == TypePositionInfo.ReturnIndex ? RefKind.None : RefKind.Out, 219RefKind = RefKind.Out,
TypePositionInfo.cs (1)
93RefKind = paramSymbol.RefKind,
20 references to RefKind
Microsoft.Interop.SourceGeneration (20)
MarshalAsParser.cs (1)
297&& info.RefKind is RefKind.None or RefKind.In or RefKind.Ref;
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (2)
217RefKind = CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind) 383if (info.RefKind == RefKind.Ref)
Marshalling\BreakingChangeDetector.cs (1)
26if (info is { RefKind: RefKind.In or RefKind.RefReadOnlyParameter, MarshallingAttributeInfo: NativeMarshallingAttributeInfo(ManagedTypeInfo { DiagnosticFormattedName: TypeNames.ComVariantMarshaller }, _) }
Marshalling\ElementsMarshalling.cs (1)
609return context.ElementIndirectionLevel != 0 || info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out || info.RefKind == RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallerHelpers.cs (12)
107return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter); 282return info.RefKind == RefKind.Ref 295switch (info.RefKind) 317switch (info.RefKind) 362if (!(info.RefKind is RefKind.Out 367if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.RefKind is RefKind.Out) 397if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.RefKind != RefKind.Out) 404switch (typeInfo.RefKind) 421throw new NotImplementedException($"Support for some RefKind: {typeInfo.RefKind}"); 435return typeInfo.RefKind switch 442_ => throw new NotImplementedException($"Support for some RefKind: {typeInfo.RefKind}")
SignatureContext.cs (1)
229Debug.Assert(lastParameter is { RefKind: RefKind.Out or RefKind.Ref }
TypePositionInfo.cs (1)
68public bool IsByRef => RefKind != RefKind.None;
VariableDeclarations.cs (1)
27if (info.RefKind == RefKind.Out && !info.IsErrorHandlingPosition)