3 writes to RefKind
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
314RefKind = RefKind.Out,
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); 315switch (info.RefKind) 337switch (info.RefKind) 382if (!(info.RefKind is RefKind.Out 387if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.RefKind is RefKind.Out) 417if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.RefKind != RefKind.Out) 424switch (typeInfo.RefKind) 441throw new NotImplementedException($"Support for some RefKind: {typeInfo.RefKind}"); 455return typeInfo.RefKind switch 462_ => 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)