1 write to ManagedValuesSource
Microsoft.Interop.SourceGeneration (1)
MarshallerShape.cs (1)
490ManagedValuesSource = managedSource,
9 references to ManagedValuesSource
Microsoft.Interop.LibraryImportGenerator (6)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (4)
1090if (methods.ManagedValuesSource is null) 1233if (methods.ManagedValuesSource is not null && methods.ManagedValuesDestination is not null) 1235if (TryGetElementTypeFromSpanType(methods.ManagedValuesSource.ReturnType, out ITypeSymbol sourceElementType) 1239diagnosticReporter.CreateAndReportDiagnostic(ElementTypesOfReturnTypesMustMatchRule, methods.ManagedValuesSource.ToDisplayString(), methods.ManagedValuesDestination.ToDisplayString());
Analyzers\CustomMarshallerAttributeFixer.cs (2)
554if (methods.ManagedValuesSource is not null) 556return ((INamedTypeSymbol)methods.ManagedValuesSource.ReturnType).TypeArguments[0];
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (2)
570if (isLinearCollectionMarshaller && methods.ManagedValuesSource is not null) 573collectionElementType = ((INamedTypeSymbol)methods.ManagedValuesSource.ReturnType).TypeArguments[0];
MarshallerShape.cs (1)
439|| SymbolEqualityComparer.Default.Equals(method, ManagedValuesSource)