6 writes to RefKind
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (2)
168
RefKind
= RefKind.Out,
181
RefKind
= RefKind.Out,
Microsoft.Interop.SourceGeneration (4)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
202
RefKind
= CreateElementRefKind(info.RefKind, info.ByValueContentsMarshalKind)
SignatureContext.cs (2)
162
RefKind
= nativeIndex == TypePositionInfo.ReturnIndex ? RefKind.None : RefKind.Out,
200
RefKind
= RefKind.Out,
TypePositionInfo.cs (1)
92
RefKind
= paramSymbol.RefKind,
20 references to RefKind
Microsoft.Interop.SourceGeneration (20)
MarshalAsParser.cs (1)
265
&& info.
RefKind
is RefKind.None or RefKind.In or RefKind.Ref;
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (2)
202
RefKind = CreateElementRefKind(info.
RefKind
, info.ByValueContentsMarshalKind)
351
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 (1)
357
return context.ElementIndirectionLevel != 0 || info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out || info.
RefKind
== RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallerHelpers.cs (12)
95
return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.
RefKind
== RefKind.In || info.
RefKind
== RefKind.RefReadOnlyParameter);
262
return info.
RefKind
== RefKind.Ref
275
switch (info.
RefKind
)
297
switch (info.
RefKind
)
342
if (!(info.
RefKind
is RefKind.Out
347
if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.
RefKind
is RefKind.Out)
377
if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.
RefKind
!= RefKind.Out)
384
switch (typeInfo.
RefKind
)
400
throw new NotImplementedException($"Support for some RefKind: {typeInfo.
RefKind
}");
414
return typeInfo.
RefKind
switch
421
_ => throw new NotImplementedException($"Support for some RefKind: {typeInfo.
RefKind
}")
SignatureContext.cs (1)
210
Debug.Assert(lastParameter is {
RefKind
: RefKind.Out or RefKind.Ref }
TypePositionInfo.cs (1)
67
public bool IsByRef =>
RefKind
!= RefKind.None;
VariableDeclarations.cs (1)
20
if (info.
RefKind
== RefKind.Out && !info.IsErrorHandlingPosition)