Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Ernesto Castellotti | 8d68279ae0 | |
Ernesto Castellotti | 2be9a475e9 | |
Ernesto Castellotti | 7499a41441 |
17080
TLScheme.json
17080
TLScheme.json
File diff suppressed because it is too large
Load Diff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue