5 writes to RefKind
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
314RefKind = RefKind.Out,
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (2)
341RefKind = RefKind.Out, // We'll treat it as a separate out parameter. 354RefKind = RefKind.Out, // We'll treat it as a separate out parameter.
Microsoft.Interop.SourceGeneration (2)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
217RefKind = CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind)
TypePositionInfo.cs (1)
95RefKind = paramSymbol.RefKind,
16 references to RefKind
Microsoft.Interop.SourceGeneration (16)
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\MarshallerHelpers.cs (11)
107return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter); 288switch (info.RefKind) 310switch (info.RefKind) 355if (!(info.RefKind is RefKind.Out 360if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.RefKind is RefKind.Out) 390if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.RefKind != RefKind.Out) 397switch (typeInfo.RefKind) 414throw new NotImplementedException($"Support for some RefKind: {typeInfo.RefKind}"); 428return typeInfo.RefKind switch 435_ => throw new NotImplementedException($"Support for some RefKind: {typeInfo.RefKind}")
TypePositionInfo.cs (1)
67public bool IsByRef => RefKind != RefKind.None;
VariableDeclarations.cs (1)
27if (info.RefKind == RefKind.Out)