Skip to content

Commit

Permalink
Remove public access modifier from class declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Jan 29, 2024
1 parent 1570b5c commit 451ebde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kiota.Builder/Writers/Dart/CodeClassDeclarationWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public override void WriteCodeElement(ClassDeclaration codeElement, LanguageWrit
.OfType<string>()
.Select(static x => x.ToFirstCharacterUpperCase())
.ToArray();
var derivation = derivedTypes.Length != 0 ? ": " + derivedTypes.Aggregate(static (x, y) => $"{x}, {y}") + " " : string.Empty;
var derivation = derivedTypes.Length != 0 ? "extends " + derivedTypes.Aggregate(static (x, y) => $"{x}, {y}") + " " : string.Empty;
conventions.WriteLongDescription(parentClass.Documentation, writer);
conventions.WriteDeprecationAttribute(parentClass, writer);
writer.StartBlock($"public class {codeElement.Name.ToFirstCharacterUpperCase()} {derivation}{{");
writer.StartBlock($"class {codeElement.Name.ToFirstCharacterUpperCase()} {derivation}{{");
}
}

0 comments on commit 451ebde

Please sign in to comment.