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