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)
201
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)
201
RefKind = CreateElementRefKind(info.
RefKind
, info.ByValueContentsMarshalKind)
350
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)
356
return context.ElementIndirectionLevel != 0 || info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out || info.
RefKind
== RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallerHelpers.cs (12)
94
return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.
RefKind
== RefKind.In || info.
RefKind
== RefKind.RefReadOnlyParameter);
261
return info.
RefKind
== RefKind.Ref
274
switch (info.
RefKind
)
296
switch (info.
RefKind
)
341
if (!(info.
RefKind
is RefKind.Out
346
if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.
RefKind
is RefKind.Out)
376
if (typeInfo.ScopedKind != ScopedKind.None && typeInfo.
RefKind
!= RefKind.Out)
383
switch (typeInfo.
RefKind
)
399
throw new NotImplementedException($"Support for some RefKind: {typeInfo.
RefKind
}");
413
return typeInfo.
RefKind
switch
420
_ => 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)