| | | 1 | | using Microsoft.CodeAnalysis; |
| | | 2 | | |
| | | 3 | | namespace NexusLabs.Needlr.Generators.Models; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Information about an open-generic decorator (from [OpenDecoratorFor(typeof(IHandler<>))]). |
| | | 7 | | /// </summary> |
| | | 8 | | internal readonly struct DiscoveredOpenDecorator |
| | | 9 | | { |
| | | 10 | | public DiscoveredOpenDecorator( |
| | | 11 | | INamedTypeSymbol decoratorType, |
| | | 12 | | INamedTypeSymbol openGenericInterface, |
| | | 13 | | int order, |
| | | 14 | | string assemblyName, |
| | | 15 | | string? sourceFilePath = null) |
| | | 16 | | { |
| | 7 | 17 | | DecoratorType = decoratorType; |
| | 7 | 18 | | OpenGenericInterface = openGenericInterface; |
| | 7 | 19 | | Order = order; |
| | 7 | 20 | | AssemblyName = assemblyName; |
| | 7 | 21 | | SourceFilePath = sourceFilePath; |
| | 7 | 22 | | } |
| | | 23 | | |
| | 7 | 24 | | public INamedTypeSymbol DecoratorType { get; } |
| | 7 | 25 | | public INamedTypeSymbol OpenGenericInterface { get; } |
| | 7 | 26 | | public int Order { get; } |
| | 7 | 27 | | public string AssemblyName { get; } |
| | 7 | 28 | | public string? SourceFilePath { get; } |
| | | 29 | | } |