1 write to ManagedValuesSource
Microsoft.Interop.SourceGeneration (1)
MarshallerShape.cs (1)
140
ManagedValuesSource
= managedSource,
8 references to ManagedValuesSource
Microsoft.Interop.LibraryImportGenerator (6)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (4)
782
if (methods.
ManagedValuesSource
is null)
945
if (methods.
ManagedValuesSource
is not null && methods.ManagedValuesDestination is not null)
947
if (TryGetElementTypeFromSpanType(methods.
ManagedValuesSource
.ReturnType, out ITypeSymbol sourceElementType)
951
diagnosticReporter.CreateAndReportDiagnostic(ElementTypesOfReturnTypesMustMatchRule, methods.
ManagedValuesSource
.ToDisplayString(), methods.ManagedValuesDestination.ToDisplayString());
Analyzers\CustomMarshallerAttributeFixer.cs (2)
387
if (methods.
ManagedValuesSource
is not null)
389
return ((INamedTypeSymbol)methods.
ManagedValuesSource
.ReturnType).TypeArguments[0];
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (2)
464
if (isLinearCollectionMarshaller && methods.
ManagedValuesSource
is not null)
467
collectionElementType = ((INamedTypeSymbol)methods.
ManagedValuesSource
.ReturnType).TypeArguments[0];