Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed Jan 9, 2024
1 parent 617db5f commit 69bf3a2
Show file tree
Hide file tree
Showing 67 changed files with 251 additions and 251 deletions.
18 changes: 9 additions & 9 deletions fakerjs2generator/source/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ string genMustacheAA(Out)(Mustache[string] m, ref Out o, string[] path
buildSingleMustache(o, it.value);
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return \"\";\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return \"\";\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -399,8 +399,8 @@ string genChemicalUnit(Out)(ChemicalUnit[] m, ref Out o, string[] path
, `q"{` ~ it.symbol ~ `}"`);
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return ChemicalUnit(\"\",\"\");\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return ChemicalUnit(\"\", \"\");\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -418,8 +418,8 @@ string genChemicalElement(Out)(ChemicalElement[] m, ref Out o, string[] path
, it.atomicNumber);
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return ChemicalElement(\"\",\"\");\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return ChemicalElement(\"\", \"\", 0);\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -437,8 +437,8 @@ string genCurrency(Out)(Currency[] m, ref Out o, string[] path
, `q"{` ~ it.symbol ~ `}"`);
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return Currency(\"\",\"\",\"\");\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return Currency(\"\", \"\", \"\");\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -459,8 +459,8 @@ string genAirplane(Out)(Airplane[] m, ref Out o, string[] path
: "nullable(q\"{" ~ it.iataTypeCode.get() ~ "}\")");
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return Airplane(Nullable!(string).init, Nullable!(string).init);\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return Airplane(Nullable!(string).init, Nullable!(string).init);\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -481,8 +481,8 @@ string genAirport(Out)(Airport[] m, ref Out o, string[] path
: "nullable(q\"{" ~ it.iataCode.get() ~ "}\")");
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return Airport(Nullable!(string).init, Nullable!(string).init);\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return Airport(Nullable!(string).init, Nullable!(string).init);\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -503,8 +503,8 @@ string genAirline(Out)(Airline[] m, ref Out o, string[] path
: "nullable(q\"{" ~ it.iataCode.get() ~ "}\")");
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return Airline(Nullable!(string).init, Nullable!(string).init);\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return Airline(Nullable!(string).init, Nullable!(string).init);\n");
iformat(o, 1, "}");
return ret;
}
Expand All @@ -520,8 +520,8 @@ string genMustache(Out)(Mustache[] m, ref Out o, string[] path
buildSingleMustache(o, it);
formattedWrite(o, ";\n");
}
iformat(o, 3, "default: return \"\";\n");
iformat(o, 2, "}\n");
iformat(o, 2, "return \"\";\n");
iformat(o, 1, "}");
return ret;
}
Expand Down Expand Up @@ -676,8 +676,8 @@ class Faker_base {
case 7: return this.internetEmojiObject();
case 8: return this.internetEmojiSymbol();
case 9: return this.internetEmojiFlag();
default: return "";
}
return "";
}
`);
Expand Down
4 changes: 2 additions & 2 deletions source/faked/faker_af_za.d
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class Faker_af_za : Faker_en {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationDefaultCountry() {
Expand Down Expand Up @@ -85,8 +85,8 @@ class Faker_af_za : Faker_en {
switch(uniform(0, 2, this.rnd)) {
case 0: return personFirstName() ~ " " ~ locationStreetSuffix();
case 1: return personLastName() ~ " " ~ locationStreetSuffix();
default: return "";
}
return "";
}

override string personFemaleFirstName() {
Expand Down
8 changes: 4 additions & 4 deletions source/faked/faker_ar.d
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class Faker_ar : Faker_en {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationCountry() {
Expand Down Expand Up @@ -264,16 +264,16 @@ class Faker_ar : Faker_en {
switch(which) {
case LocationStreetAddressEnum.normal: return locationBuildingNumber() ~ " " ~ locationStreet();
case LocationStreetAddressEnum.full: return locationBuildingNumber() ~ " " ~ locationStreet() ~ " " ~ locationSecondaryAddress();
default: return "";
}
return "";
}

override string locationStreetPattern() {
switch(uniform(0, 2, this.rnd)) {
case 0: return locationStreetPrefix() ~ " " ~ personFirstName();
case 1: return locationStreetPrefix() ~ " " ~ personLastName();
default: return "";
}
return "";
}

string locationStreetPrefix() {
Expand Down Expand Up @@ -671,8 +671,8 @@ class Faker_ar : Faker_en {
override string teamName() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationState() ~ " " ~ teamCreature();
default: return "";
}
return "";
}

override string vehicleFuel() {
Expand Down
8 changes: 4 additions & 4 deletions source/faked/faker_az.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class Faker_az : Faker_en {
case 0: return companyPrefix() ~ " " ~ personFemaleFirstName();
case 1: return companyPrefix() ~ " " ~ personMaleFirstName();
case 2: return companyPrefix() ~ " " ~ personMaleLastName();
default: return "";
}
return "";
}

string companyPrefix() {
Expand Down Expand Up @@ -141,8 +141,8 @@ class Faker_az : Faker_en {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationCountry() {
Expand Down Expand Up @@ -223,8 +223,8 @@ class Faker_az : Faker_en {
switch(which) {
case LocationStreetAddressEnum.normal: return locationStreet() ~ ", " ~ locationBuildingNumber();
case LocationStreetAddressEnum.full: return locationStreet() ~ ", " ~ locationBuildingNumber() ~ " " ~ locationSecondaryAddress();
default: return "";
}
return "";
}

override string locationStreetName() {
Expand Down Expand Up @@ -296,8 +296,8 @@ class Faker_az : Faker_en {
switch(uniform(0, 2, this.rnd)) {
case 0: return locationStreetSuffix() ~ " " ~ locationStreetName();
case 1: return locationStreetName() ~ " " ~ locationStreetSuffix();
default: return "";
}
return "";
}

override string locationStreetSuffix() {
Expand Down
2 changes: 1 addition & 1 deletion source/faked/faker_base.d
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class Faker_base {
case 7: return this.internetEmojiObject();
case 8: return this.internetEmojiSymbol();
case 9: return this.internetEmojiFlag();
default: return "";
}
return "";
}

string databaseCollation() {
Expand Down
8 changes: 4 additions & 4 deletions source/faked/faker_cs_cz.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Faker_cs_cz : Faker_en {
switch(uniform(0, 2, this.rnd)) {
case 0: return personLastName() ~ " " ~ companySuffix();
case 1: return personMaleLastName() ~ " a " ~ personMaleLastName() ~ " " ~ companySuffix();
default: return "";
}
return "";
}

override string companySuffix() {
Expand Down Expand Up @@ -210,8 +210,8 @@ class Faker_cs_cz : Faker_en {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationCountry() {
Expand Down Expand Up @@ -292,8 +292,8 @@ class Faker_cs_cz : Faker_en {
switch(which) {
case LocationStreetAddressEnum.normal: return locationStreet() ~ " " ~ locationBuildingNumber();
case LocationStreetAddressEnum.full: return locationStreet() ~ " " ~ locationBuildingNumber() ~ " " ~ locationSecondaryAddress();
default: return "";
}
return "";
}

override string locationStreetName() {
Expand Down Expand Up @@ -1758,8 +1758,8 @@ class Faker_cs_cz : Faker_en {
override string locationStreetPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationStreetName();
default: return "";
}
return "";
}

override string loremWords() {
Expand Down
8 changes: 4 additions & 4 deletions source/faked/faker_da.d
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ class Faker_da : Faker_en {
switch(uniform(0, 2, this.rnd)) {
case 0: return companyCompanyName();
case 1: return personLastName() ~ " " ~ commerceDepartment() ~ " " ~ companySuffix();
default: return "";
}
return "";
}

override string companyNoun() {
Expand Down Expand Up @@ -339,8 +339,8 @@ class Faker_da : Faker_en {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationCountry() {
Expand Down Expand Up @@ -436,8 +436,8 @@ class Faker_da : Faker_en {
switch(which) {
case LocationStreetAddressEnum.normal: return locationStreet() ~ " " ~ locationBuildingNumber();
case LocationStreetAddressEnum.full: return locationStreet() ~ " " ~ locationBuildingNumber() ~ ", " ~ locationSecondaryAddress();
default: return "";
}
return "";
}

override string locationStreetName() {
Expand Down Expand Up @@ -477,8 +477,8 @@ class Faker_da : Faker_en {
override string locationStreetPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationStreetName();
default: return "";
}
return "";
}

override string personFemaleFirstName() {
Expand Down
8 changes: 4 additions & 4 deletions source/faked/faker_de.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class Faker_de : Faker_en {
case 0: return personLastName() ~ " " ~ companySuffix();
case 1: return personLastName() ~ "-" ~ personLastName();
case 2: return personLastName() ~ ", " ~ personLastName() ~ " und " ~ personLastName();
default: return "";
}
return "";
}

override string companySuffix() {
Expand Down Expand Up @@ -151,8 +151,8 @@ class Faker_de : Faker_en {
case 2: return personFirstName() ~ locationCitySuffix();
case 3: return personLastName() ~ locationCitySuffix();
case 4: return locationCityName();
default: return "";
}
return "";
}

override string locationCityPrefix() {
Expand Down Expand Up @@ -267,8 +267,8 @@ class Faker_de : Faker_en {
switch(which) {
case LocationStreetAddressEnum.normal: return locationStreet() ~ " " ~ locationBuildingNumber();
case LocationStreetAddressEnum.full: return locationStreet() ~ " " ~ locationBuildingNumber() ~ " " ~ locationSecondaryAddress();
default: return "";
}
return "";
}

override string locationStreetName() {
Expand Down Expand Up @@ -503,8 +503,8 @@ class Faker_de : Faker_en {
override string locationStreetPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationStreetName();
default: return "";
}
return "";
}

override string loremWords() {
Expand Down
8 changes: 4 additions & 4 deletions source/faked/faker_de_at.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class Faker_de_at : Faker_de {
case 0: return personLastName() ~ " " ~ companySuffix();
case 1: return personLastName() ~ "-" ~ personLastName();
case 2: return personLastName() ~ ", " ~ personLastName() ~ " und " ~ personLastName();
default: return "";
}
return "";
}

override string companySuffix() {
Expand Down Expand Up @@ -99,8 +99,8 @@ class Faker_de_at : Faker_de {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationCountry() {
Expand Down Expand Up @@ -198,8 +198,8 @@ class Faker_de_at : Faker_de {
switch(which) {
case LocationStreetAddressEnum.normal: return locationStreet() ~ " " ~ locationBuildingNumber();
case LocationStreetAddressEnum.full: return locationStreet() ~ " " ~ locationBuildingNumber() ~ " " ~ locationSecondaryAddress();
default: return "";
}
return "";
}

override string locationStreetName() {
Expand Down Expand Up @@ -253,8 +253,8 @@ class Faker_de_at : Faker_de {
override string locationStreetPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationStreetName();
default: return "";
}
return "";
}

override string personFemaleFirstName() {
Expand Down
6 changes: 3 additions & 3 deletions source/faked/faker_de_ch.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Faker_de_ch : Faker_de {
case 0: return personLastName() ~ " " ~ companySuffix();
case 1: return personLastName() ~ "-" ~ personLastName();
case 2: return personLastName() ~ ", " ~ personLastName() ~ " und " ~ personLastName();
default: return "";
}
return "";
}

override string companySuffix() {
Expand Down Expand Up @@ -68,8 +68,8 @@ class Faker_de_ch : Faker_de {
override string locationCityPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationCityName();
default: return "";
}
return "";
}

override string locationDefaultCountry() {
Expand Down Expand Up @@ -120,8 +120,8 @@ class Faker_de_ch : Faker_de {
override string locationStreetPattern() {
switch(uniform(0, 1, this.rnd)) {
case 0: return locationStreetName();
default: return "";
}
return "";
}

override string personFemaleFirstName() {
Expand Down
Loading

0 comments on commit 69bf3a2

Please sign in to comment.