Compare commits

...

3 Commits

Author SHA1 Message Date
Ernesto Castellotti 8d68279ae0 Update JSON scheme to TDLIB 8ab43e5 2022-10-09 16:54:32 +02:00
Ernesto Castellotti 2be9a475e9 Update JSON scheme to TDLIB 99163ff 2020-10-02 22:28:00 +02:00
Ernesto Castellotti 7499a41441
Base class name moved to a configurable constant 2019-06-03 23:16:23 +02:00
2 changed files with 14772 additions and 2313 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@
module tlscheme2json;
enum DEFAULT_TL_URL = "https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl";
enum BASECLASS_NAME = "TLBaseClass";
class TLMethod {
string name = "";
@ -110,7 +111,7 @@ class TLScheme2Json {
auto tlClass = new TLClass();
tlClass.name = lineSplit[1].replace("class", "").strip();
tlClass.description = lineSplit[2].replace("description", "").strip();
tlClass.inheritance = "TLBaseClass";
tlClass.inheritance = BASECLASS_NAME;
tlClass.isFunction = isFunction;
this.classList ~= tlClass;
}
@ -177,7 +178,7 @@ class TLScheme2Json {
}
if(inheritance == null) {
inheritance = "BaseTLClass";
inheritance = BASECLASS_NAME;
}
if(isFunction && return_type.empty) {