diff --git a/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs b/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs index 0422d07..315e838 100644 --- a/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs +++ b/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs @@ -57,13 +57,6 @@ public partial class IViewForGenerator return default; } - var compilation = context.SemanticModel.Compilation; - var semanticModel = compilation.GetSemanticModel(context.SemanticModel.SyntaxTree); - token.ThrowIfCancellationRequested(); - attributeData.GatherForwardedAttributesFromClass(semanticModel, declaredClass, token, out var classAttributesInfo); - var forwardedClassAttributes = classAttributesInfo.Select(static a => a.ToString()) - .Where(x => !x.Contains(AttributeDefinitions.IViewForAttributeType)) - .ToImmutableArray(); token.ThrowIfCancellationRequested(); var viewForBaseType = IViewForBaseType.None; @@ -105,14 +98,13 @@ public partial class IViewForGenerator targetInfo.TargetVisibility, targetInfo.TargetType, viewModelTypeName!, - viewForBaseType, - forwardedClassAttributes); + viewForBaseType); } private static string GenerateSource(string containingTypeName, string containingNamespace, string containingClassVisibility, string containingType, IViewForInfo iviewForInfo) { // Prepare any forwarded property attributes - var forwardedAttributesString = string.Join("\n ", excludeFromCodeCoverage.Concat(iviewForInfo.ForwardedAttributes)); + var forwardedAttributesString = string.Join("\n ", excludeFromCodeCoverage); switch (iviewForInfo.BaseType) { diff --git a/src/ReactiveUI.SourceGenerators/IViewFor/Models/IViewForInfo.cs b/src/ReactiveUI.SourceGenerators/IViewFor/Models/IViewForInfo.cs index 205d789..c953459 100644 --- a/src/ReactiveUI.SourceGenerators/IViewFor/Models/IViewForInfo.cs +++ b/src/ReactiveUI.SourceGenerators/IViewFor/Models/IViewForInfo.cs @@ -18,5 +18,4 @@ internal sealed record IViewForInfo( string TargetVisibility, string TargetType, string ViewModelTypeName, - IViewForBaseType BaseType, - EquatableArray ForwardedAttributes); + IViewForBaseType BaseType);