4 writes to RefKind
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
300
RefKind
= RefKind.Out,
Microsoft.Interop.SourceGeneration (3)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
312
RefKind
= CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind)
Marshalling\ElementsMarshalling.cs (1)
472
RefKind
= info.IsByRef ? info.RefKind : info.ByValueContentsMarshalKind.GetRefKindForByValueContentsKind(),
TypePositionInfo.cs (1)
90
RefKind
= paramSymbol.RefKind,
18 references to RefKind
Microsoft.Interop.SourceGeneration (18)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (2)
312
RefKind = CreateElementRefKind(info.
RefKind
, info.ByValueContentsMarshalKind)
478
if (info.
RefKind
== RefKind.Ref)
Marshalling\BreakingChangeDetector.cs (1)
26
if (info is {
RefKind
: RefKind.In or RefKind.RefReadOnlyParameter, MarshallingAttributeInfo: NativeMarshallingAttributeInfo(ManagedTypeInfo { DiagnosticFormattedName: TypeNames.ComVariantMarshaller }, _) }
Marshalling\ElementsMarshalling.cs (2)
472
RefKind = info.IsByRef ? info.
RefKind
: info.ByValueContentsMarshalKind.GetRefKindForByValueContentsKind(),
545
return !context.AdditionalTemporaryStateLivesAcrossStages || info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out || info.
RefKind
== RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallerHelpers.cs (11)
91
return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.
RefKind
== RefKind.In || info.
RefKind
== RefKind.RefReadOnlyParameter);
299
switch (info.
RefKind
)
321
switch (info.
RefKind
)
366
if (!(info.
RefKind
is RefKind.Out
371
if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.
RefKind
is RefKind.Out)
401
if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.
RefKind
!= RefKind.Out)
408
switch (typeInfo.
RefKind
)
425
throw new NotImplementedException($"Support for some RefKind: {typeInfo.
RefKind
}");
439
return typeInfo.
RefKind
switch
446
_ => throw new NotImplementedException($"Support for some RefKind: {typeInfo.
RefKind
}")
TypePositionInfo.cs (1)
67
public bool IsByRef =>
RefKind
!= RefKind.None;
VariableDeclarations.cs (1)
27
if (info.
RefKind
== RefKind.Out)