forked from xtclang/xvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change code style for auto-generated code
- Loading branch information
Gene Gleyzer
committed
Jun 2, 2023
1 parent
8a55467
commit d16e4fa
Showing
8 changed files
with
44 additions
and
61 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
lib_oodb/src/main/x/oodb/tools/templates/ChildSchemaDeclaration.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
class %schemaName%Impl_(DboInfo_ info_) | ||
extends DBSchemaImpl(info_) | ||
implements %schemaTypeName% | ||
{ | ||
implements %schemaTypeName% { | ||
%PropertyGetters% %SchemaMethods% %ChildSchemas% | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
lib_oodb/src/main/x/oodb/tools/templates/CustomInstantiation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
case %propertyId%: | ||
DboInfo_ info = this.%appName%Client_.infoFor(%propertyId%); | ||
%propertyStoreType% store = | ||
this.%appName%Client_.storeFor(%propertyId%).as(%propertyStoreType%); | ||
return new %propertyTypeName%Impl_(info, store); | ||
case %propertyId%: | ||
DboInfo_ info = this.%appName%Client_.infoFor(%propertyId%); | ||
%propertyStoreType% store = | ||
this.%appName%Client_.storeFor(%propertyId%).as(%propertyStoreType%); | ||
return new %propertyTypeName%Impl_(info, store); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
|
||
@Override | ||
%retType% %name%(%argsDecl%) | ||
{ | ||
using (this.%appName%Client_.ensureTransaction(this)) | ||
{ | ||
%retType% %name%(%argsDecl%) { | ||
using (this.%appName%Client_.ensureTransaction(this)) { | ||
return super(%args%); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
@Override | ||
%propertyType% %propertyName%.get() | ||
{ | ||
%propertyType% %propertyName%.get() { | ||
%propertyType% impl = this.%appName%Client_.implFor(%propertyId%).as(%propertyType%); | ||
return &impl.maskAs(%propertyType%); | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
lib_oodb/src/main/x/oodb/tools/templates/RootSchemaDeclaration.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
@Override | ||
class RootSchemaImpl(DboInfo_ info_) | ||
implements RootSchema_ | ||
{ | ||
implements RootSchema_ { | ||
%PropertyGetters% | ||
%SchemaMethods% | ||
} | ||
} | ||
%ChildSchemas% |
6 changes: 3 additions & 3 deletions
6
lib_oodb/src/main/x/oodb/tools/templates/SchemaInstantiation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
case %schemaId%: | ||
DboInfo_ info = this.%appName%Client_.infoFor(%schemaId%); | ||
return new %schemaName%Impl_(info); | ||
case %schemaId%: | ||
DboInfo_ info = this.%appName%Client_.infoFor(%schemaId%); | ||
return new %schemaName%Impl_(info); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters