Skip to content

Commit

Permalink
add missing access setter (closes #145)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Nov 21, 2024
1 parent 6c61f83 commit c79d5cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion DragonFruit.Data.Roslyn/ApiRequestSourceBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@ public static SourceText Build(INamedTypeSymbol classSymbol, RequestSymbolMetada
{
// classes are partial by default
var classBuilder = new ClassBuilder()
.AddImplements("global::DragonFruit.Data.Requests.IRequestBuilder")
.SetName(classSymbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat))
.AddImplements("global::DragonFruit.Data.Requests.IRequestBuilder");
.SetAccessModifier(classSymbol.DeclaredAccessibility switch
{
Accessibility.Public => AccessModifier.Public,
Accessibility.Internal => AccessModifier.Internal,
Accessibility.Private => AccessModifier.Private,

_ => AccessModifier.Protected
});

var serializerMethodParamBuilder = new ParameterBuilder()
.SetType("global::DragonFruit.Data.Serializers.SerializerResolver")
Expand Down

0 comments on commit c79d5cf

Please sign in to comment.