Skip to content

Commit 96f888e

Browse files
authored
feat: expose various emit functions to subclasses (#2658)
1 parent d1a3956 commit 96f888e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/quicktype-core/src/language/Elixir/ElixirRenderer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class ElixirRenderer extends ConvenienceRenderer {
231231
});
232232
}
233233

234-
private emitPatternMatches(
234+
protected emitPatternMatches(
235235
types: Type[],
236236
name: Sourcelike,
237237
parentName: Sourcelike,
@@ -548,7 +548,7 @@ export class ElixirRenderer extends ConvenienceRenderer {
548548
);
549549
}
550550

551-
private emitBlock(source: Sourcelike, emit: () => void): void {
551+
protected emitBlock(source: Sourcelike, emit: () => void): void {
552552
this.emitLine(source);
553553
this.indent(emit);
554554
this.emitLine("end");
@@ -562,7 +562,7 @@ export class ElixirRenderer extends ConvenienceRenderer {
562562
});
563563
}
564564

565-
private emitModule(c: ClassType, moduleName: Name): void {
565+
protected emitModule(c: ClassType, moduleName: Name): void {
566566
this.emitBlock(["defmodule ", this.nameWithNamespace(moduleName), " do"], () => {
567567
const structDescription = this.descriptionForType(c) ?? [];
568568
const attributeDescriptions: Sourcelike[][] = [];
@@ -750,7 +750,7 @@ export class ElixirRenderer extends ConvenienceRenderer {
750750
return true;
751751
}
752752

753-
private emitEnum(e: EnumType, enumName: Name): void {
753+
protected emitEnum(e: EnumType, enumName: Name): void {
754754
this.emitBlock(["defmodule ", this.nameWithNamespace(enumName), " do"], () => {
755755
this.emitDescription(this.descriptionForType(e));
756756
this.emitLine("@valid_enum_members [");
@@ -809,7 +809,7 @@ end`);
809809
});
810810
}
811811

812-
private emitUnion(_u: UnionType, _unionName: Name): void {
812+
protected emitUnion(_u: UnionType, _unionName: Name): void {
813813
return;
814814
}
815815

0 commit comments

Comments
 (0)