4 writes to RefKind
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
300RefKind = RefKind.Out,
Microsoft.Interop.SourceGeneration (3)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
312RefKind = CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind)
Marshalling\ElementsMarshalling.cs (1)
472RefKind = info.IsByRef ? info.RefKind : info.ByValueContentsMarshalKind.GetRefKindForByValueContentsKind(),
TypePositionInfo.cs (1)
90RefKind = paramSymbol.RefKind,
18 references to RefKind
Microsoft.Interop.SourceGeneration (18)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (2)
312RefKind = CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind) 478if (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 (2)
472RefKind = info.IsByRef ? info.RefKind : info.ByValueContentsMarshalKind.GetRefKindForByValueContentsKind(), 545return !context.AdditionalTemporaryStateLivesAcrossStages || info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out || info.RefKind == RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallerHelpers.cs (11)
91return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter); 299switch (info.RefKind) 321switch (info.RefKind) 366if (!(info.RefKind is RefKind.Out 371if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.RefKind is RefKind.Out) 401if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.RefKind != RefKind.Out) 408switch (typeInfo.RefKind) 425throw new NotImplementedException($"Support for some RefKind: {typeInfo.RefKind}"); 439return typeInfo.RefKind switch 446_ => 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)