diff --git a/scripts/tsgen/bin/Parser.js b/scripts/tsgen/bin/Parser.js
index 4ae94ce11..a03b9e569 100644
--- a/scripts/tsgen/bin/Parser.js
+++ b/scripts/tsgen/bin/Parser.js
@@ -20,6 +20,9 @@ class Parser {
// overridden) members globally from the parsed DB
this.resolveInheritance(docs);
this.resolveParents(docs);
+ console.log('------------------------------------------------------------------');
+ console.log('Add Integer Alias and Declare Module');
+ console.log('------------------------------------------------------------------');
// add integer alias
this.topLevel.push(dom.create.alias('integer', dom.type.number));
// add declare module
@@ -28,6 +31,9 @@ class Parser {
this.topLevel.push(phaserPkgModuleDOM);
}
emit() {
+ console.log('------------------------------------------------------------------');
+ console.log('Parser Emit');
+ console.log('------------------------------------------------------------------');
let ignored = [];
let result = '// DO NOT EDIT THIS FILE! It was generated by running `npm run tsgen`\n/// \n\n';
result = result.concat(this.topLevel.reduce((out, obj) => {
@@ -150,6 +156,7 @@ class Parser {
let allTypes = new Set();
for (let doclet of docs) {
let obj = (doclet.kind === 'namespace') ? this.namespaces[doclet.longname] : this.objects[doclet.longname];
+ // console.log(`${doclet.longname} - Kind: ${doclet.kind}`);
if (!obj) {
console.log(`${doclet.longname} - Kind: ${doclet.kind}`);
console.log(`Warning: Didn't find object`);
@@ -165,6 +172,9 @@ class Parser {
console.log(`${doclet.longname} - Kind: ${doclet.kind}`);
console.log(`PARENT WARNING: ${doclet.longname} in ${doclet.meta.filename}@${doclet.meta.lineno} has parent '${doclet.memberof}' that is not defined.`);
}
+ if (!parent.kind) {
+ console.log(`PARENT KIND WARNING: ${doclet.longname} in ${doclet.meta.filename}@${doclet.meta.lineno} has parent '${doclet.memberof}' that is not defined.`);
+ }
if (parent.members) {
parent.members.push(obj);
}
@@ -191,6 +201,9 @@ class Parser {
}
}
resolveInheritance(docs) {
+ console.log('------------------------------------------------------------------');
+ console.log('Resolve Inheritance');
+ console.log('------------------------------------------------------------------');
for (let doclet of docs) {
let obj = doclet.kind === 'namespace' ? this.namespaces[doclet.longname] : this.objects[doclet.longname];
if (!obj) {
@@ -213,6 +226,9 @@ class Parser {
}
}
resolveParents(docs) {
+ console.log('------------------------------------------------------------------');
+ console.log('Resolve Parents');
+ console.log('------------------------------------------------------------------');
for (let doclet of docs) {
let obj = this.objects[doclet.longname];
if (!obj || doclet.kind !== 'class')
diff --git a/scripts/tsgen/bin/Parser.js.map b/scripts/tsgen/bin/Parser.js.map
index b48ee1669..5a946b451 100644
--- a/scripts/tsgen/bin/Parser.js.map
+++ b/scripts/tsgen/bin/Parser.js.map
@@ -1 +1 @@
-{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../src/Parser.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;;GAGG;AAEH,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAEzC,MAAa,MAAM;IAMf,YAAY,IAAW;QAEnB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QAErB,qDAAqD;QACrD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAExB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAE1B,yCAAyC;QACzC,yIAAyI;QACzI,kDAAkD;QAClD,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAE9B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAE1B,oBAAoB;QACpB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAEjE,qBAAqB;QACrB,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEvD,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ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,YAAY,CAAC,CAAC;yBAC5D;qBACJ;iBACJ;gBACD,IAAI,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,EAAC,kCAAkC;oBAC7C,GAAI,CAAC,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;iBAC3F;gBACD,IAAI,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAC,gCAAgC;oBACzC,GAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;iBACrF;aACJ;QACL,CAAC;IACL,CAAC;CAEJ;AAtrBD,wBAsrBC"}
\ No newline at end of file
diff --git a/scripts/tsgen/src/Parser.ts b/scripts/tsgen/src/Parser.ts
index 2ba8b241c..25035a4a5 100644
--- a/scripts/tsgen/src/Parser.ts
+++ b/scripts/tsgen/src/Parser.ts
@@ -31,6 +31,10 @@ export class Parser {
this.resolveParents(docs);
+ console.log('------------------------------------------------------------------');
+ console.log('Add Integer Alias and Declare Module');
+ console.log('------------------------------------------------------------------');
+
// add integer alias
this.topLevel.push(dom.create.alias('integer', dom.type.number));
@@ -44,6 +48,10 @@ export class Parser {
emit(): string {
+ console.log('------------------------------------------------------------------');
+ console.log('Parser Emit');
+ console.log('------------------------------------------------------------------');
+
let ignored = [];
let result = '// DO NOT EDIT THIS FILE! It was generated by running `npm run tsgen`\n/// \n\n';
@@ -197,6 +205,8 @@ export class Parser {
{
let obj = (doclet.kind === 'namespace') ? this.namespaces[doclet.longname] : this.objects[doclet.longname];
+ // console.log(`${doclet.longname} - Kind: ${doclet.kind}`);
+
if (!obj)
{
console.log(`${doclet.longname} - Kind: ${doclet.kind}`);
@@ -221,6 +231,11 @@ export class Parser {
console.log(`PARENT WARNING: ${doclet.longname} in ${doclet.meta.filename}@${doclet.meta.lineno} has parent '${doclet.memberof}' that is not defined.`);
}
+ if (!(parent as any).kind)
+ {
+ console.log(`PARENT KIND WARNING: ${doclet.longname} in ${doclet.meta.filename}@${doclet.meta.lineno} has parent '${doclet.memberof}' that is not defined.`);
+ }
+
if ((parent).members)
{
(parent).members.push(obj);
@@ -258,6 +273,10 @@ export class Parser {
private resolveInheritance(docs: any[])
{
+ console.log('------------------------------------------------------------------');
+ console.log('Resolve Inheritance');
+ console.log('------------------------------------------------------------------');
+
for (let doclet of docs)
{
let obj = doclet.kind === 'namespace' ? this.namespaces[doclet.longname] : this.objects[doclet.longname];
@@ -289,28 +308,43 @@ export class Parser {
}
}
- private resolveParents(docs: any[]) {
- for (let doclet of docs) {
+ private resolveParents(docs: any[])
+ {
+ console.log('------------------------------------------------------------------');
+ console.log('Resolve Parents');
+ console.log('------------------------------------------------------------------');
+
+ for (let doclet of docs)
+ {
let obj = this.objects[doclet.longname];
+
if (!obj || doclet.kind !== 'class') continue;
let o = obj as dom.ClassDeclaration;
// resolve augments
- if (doclet.augments && doclet.augments.length) {
- for (let augment of doclet.augments) {
+ if (doclet.augments && doclet.augments.length)
+ {
+ for (let augment of doclet.augments)
+ {
let name: string = this.prepareTypeName(augment);
let wrappingName = name.match(/[^<]+/s)[0];//gets everything up to a first < (to handle augments with type parameters)
let baseType = this.objects[wrappingName] as dom.ClassDeclaration | dom.InterfaceDeclaration;
- if (!baseType) {
+ if (!baseType)
+ {
console.log(`ERROR: Did not find base type: ${augment} for ${doclet.longname}`);
- } else {
- if (baseType.kind == 'class') {
+ }
+ else
+ {
+ if (baseType.kind == 'class')
+ {
o.baseType = dom.create.class(name);
- } else {
+ }
+ else
+ {
o.implements.push(dom.create.interface(name));
}
}