Skip to content

Code gen issue #91

@slang25

Description

@slang25

Hello, first off - what a great idea for a library.

I'm having a play with this for the first time, and thought it would be a good idea to add it to the benchmarks in EfficientDynamoDb, however I'm running into a bit of an issue. After adding the source generator package and the DynamoDBMarshaller attribute. I am getting compilation errors due to the following generated code:

public static global::System.Collections.Generic.HashSet<string?>? HashSet_String(AttributeValue? attributeValue, global::Benchmarks.Entities.MixedEntity.MarshallerOptions options, string? dataMember = null)
{
    if (attributeValue is null || attributeValue.SS is null)
    {
        return null;
    }
    return new (attributeValue.SS));
}

The final return line doesn't use the type name after new, which is fine because the language syntax will infer it, however the braces are unmatched.

The type I'm using can be found here. Please let me know if there any more details I can provide 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions