3 writes to RefKind
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
314
RefKind
= RefKind.Out,
Microsoft.Interop.SourceGeneration (2)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
217
RefKind
= CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind)
TypePositionInfo.cs (1)
95
RefKind
= paramSymbol.RefKind,
16 references to RefKind
Microsoft.Interop.SourceGeneration (16)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (2)
217
RefKind = CreateElementRefKind(info.
RefKind
, info.ByValueContentsMarshalKind)
383
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\MarshallerHelpers.cs (11)
107
return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.
RefKind
== RefKind.In || info.
RefKind
== RefKind.RefReadOnlyParameter);
315
switch (info.
RefKind
)
337
switch (info.
RefKind
)
382
if (!(info.
RefKind
is RefKind.Out
387
if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.
RefKind
is RefKind.Out)
417
if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.
RefKind
!= RefKind.Out)
424
switch (typeInfo.
RefKind
)
441
throw new NotImplementedException($"Support for some RefKind: {typeInfo.
RefKind
}");
455
return typeInfo.
RefKind
switch
462
_ => 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)