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