Skip to content

Commit

Permalink
Reacting to feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Aug 27, 2024
1 parent e49b43f commit 05d7b10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public TypeDeclarationSyntax TypeDeclaration(TypeDeclarationSyntax syntax, Synta
StructDeclarationSyntax => StructDeclaration(name),
InterfaceDeclarationSyntax => InterfaceDeclaration(name),
RecordDeclarationSyntax => RecordDeclaration(Token(SyntaxKind.RecordKeyword), name),
_ => throw new NotSupportedException("Unsupported type declaration syntax.")
_ => throw new NotSupportedException($"Unsupported type declaration syntax {syntax.GetType().Name}.")
};

var isPartial = syntax.Modifiers.Any(kind => kind.IsKind(SyntaxKind.PartialKeyword));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#if NET8_0_OR_GREATER
using Riok.Mapperly.Abstractions;

namespace Riok.Mapperly.IntegrationTests.Mapper
{
public partial class NestedTestMapperPrimaryConstructor(string test)
{
private readonly string _test = test;

public partial class TestNesting
{
[Mapper]
Expand All @@ -14,3 +17,4 @@ public static partial class NestedMapper
}
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Threading.Tasks;
#if NET8_0_OR_GREATER
using System.Threading.Tasks;
using FluentAssertions;
using Riok.Mapperly.IntegrationTests.Mapper;
using VerifyXunit;
Expand All @@ -25,3 +26,4 @@ public void RunMappingShouldWork()
}
}
}
#endif

0 comments on commit 05d7b10

Please sign in to comment.