Skip to content

Commit

Permalink
yeet
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Dec 15, 2023
1 parent 0a17f31 commit 530ca2c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions transform/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ class AsJSONTransform extends BaseVisitor {
parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.encodeStmts.push((parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.encodeStmts.pop()) + ",");
this.currentClass.encodeStmts.push(...parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.encodeStmts);
}
else {
console.error("Class extends " +
this.currentClass.parent +
", but parent class not found. Maybe add the @json decorator over parent class?");
}
}
const parentSchema = this.schemasList.find((v) => v.name == this.currentClass.parent);
const members = [
Expand Down
6 changes: 0 additions & 6 deletions transform/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ class AsJSONTransform extends BaseVisitor {
if (parentSchema?.encodeStmts) {
parentSchema?.encodeStmts.push(parentSchema?.encodeStmts.pop() + ",");
this.currentClass.encodeStmts.push(...parentSchema?.encodeStmts);
} else {
console.error(
"Class extends " +
this.currentClass.parent +
", but parent class not found. Maybe add the @json decorator over parent class?"
);
}
}

Expand Down

0 comments on commit 530ca2c

Please sign in to comment.