From 9e5e6c9d68e7cd54dfea173bd57ec331393733f9 Mon Sep 17 00:00:00 2001 From: Timur Kelman Date: Fri, 19 Jul 2024 18:17:10 +0200 Subject: [PATCH] place trivia in all accessors when converting parameterized properties --- CodeConverter/CSharp/DeclarationNodeVisitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeConverter/CSharp/DeclarationNodeVisitor.cs b/CodeConverter/CSharp/DeclarationNodeVisitor.cs index 0030f8806..0e1dcafc2 100644 --- a/CodeConverter/CSharp/DeclarationNodeVisitor.cs +++ b/CodeConverter/CSharp/DeclarationNodeVisitor.cs @@ -674,7 +674,7 @@ public override async Task VisitPropertyStatement(VBSyntax.Pro throw new NotImplementedException("MyClass indexing not implemented"); } var methodDeclarationSyntaxs = await propertyBlock.Accessors.SelectAsync(async a => - await a.AcceptAsync(TriviaConvertingDeclarationVisitor, a == propertyBlock.Accessors.First() ? SourceTriviaMapKind.All : SourceTriviaMapKind.None)); + await a.AcceptAsync(TriviaConvertingDeclarationVisitor, SourceTriviaMapKind.All)); var accessorMethods = methodDeclarationSyntaxs.Select(WithMergedModifiers).ToArray(); if (hasExplicitInterfaceImplementation) {