Skip to content

Commit c218dc2

Browse files
committed
WIP
1 parent 7d41aaf commit c218dc2

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

src/DynamoDBGenerator.SourceGenerator/Generations/AttributeExpressionValue.cs

+5
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ internal static IEnumerable<string> CreateExpressionAttributeValue(IEnumerable<D
8686
}
8787
private static CodeFactory CreateStruct(ITypeSymbol typeSymbol, Func<ITypeSymbol, ImmutableArray<DynamoDbDataMember>> fn, MarshallerOptions options)
8888
{
89+
// TODO
90+
if (options.IsConvertable(typeSymbol))
91+
{
92+
93+
}
8994
var dataMembers = fn(typeSymbol)
9095
.Select(x =>
9196
{

tests/DynamoDBGenerator.SourceGenerator.Tests/DynamoDBDocumentTests/ExpressionAttributeTrackerTests.cs

-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@ namespace DynamoDBGenerator.SourceGenerator.Tests.DynamoDBDocumentTests;
33

44
[DynamoDBMarshaller(typeof(Person), ArgumentType = typeof((string firstName, DateTime timeStamp)), PropertyName = "PersonWithTupleArgument")]
55
[DynamoDBMarshaller(typeof(Person))]
6-
[DynamoDBMarshaller(typeof(Person), PropertyName = "PrimitiveArgument", ArgumentType = typeof(string))]
76
[DynamoDBMarshaller(typeof(SelfReferencingClass))]
87
[DynamoDBMarshaller(typeof(ClassWithOverriddenAttributeName))]
98
[DynamoDBMarshaller(typeof(InheritedClass))]
109
public partial class ExpressionAttributeTrackerTests
1110
{
12-
[Fact]
13-
public void Test()
14-
{
15-
}
1611
[Fact]
1712
public void PersonWithTupleArgument_AccessingRootExpressionAttributeName_ShouldThrow()
1813
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using DynamoDBGenerator.Attributes;
2+
3+
namespace DynamoDBGenerator.SourceGenerator.Tests.DynamoDBDocumentTests;
4+
5+
[DynamoDBMarshaller(typeof((Guid, Guid)), PropertyName = "PrimitiveArgument", ArgumentType = typeof(string))]
6+
public partial class PrimitiveArgumentTests
7+
{
8+
9+
[Fact]
10+
public void Test()
11+
{
12+
PrimitiveArgument.
13+
}
14+
}

0 commit comments

Comments
 (0)