Browse Source

Base class name moved to a configurable constant

scheme-update v1
Ernesto Castellotti 3 years ago
committed by GitHub
parent
commit
7499a41441
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      source/tlscheme2json.d

5
source/tlscheme2json.d

@ -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…
Cancel
Save