Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ under the licensing terms detailed in LICENSE:
* Valeria Viana Gusmao <[email protected]>
* Gabor Greif <[email protected]>
* Martin Fredriksson <[email protected]>
* forcepusher <[email protected]>

Portions of this software are derived from third-party works licensed under
the following terms:
Expand Down
7 changes: 7 additions & 0 deletions src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,13 @@ export class TSDBuilder extends ExportsWalker {
sb.push(extendsNode.name.identifier.text); // TODO: fqn?
}
sb.push(" {\n");
if (!isInterface) {
indent(sb, this.indentLevel);
sb.push("static wrap(ptr: usize): ");
sb.push(name);
sb.push(";");
sb.push("\n");
}
var staticMembers = element.prototype.members;
if (staticMembers) {
// TODO: for (let member of staticMembers.values()) {
Expand Down