Autodesk / Autodesk/AutomaticComponentToolkit

NodeJS bindings do not implement inheritance

未关闭
#77 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
53
派生
26
PR 合并指标
30 天内没有已合并 PR

描述

**Problem:** NodeJS bindings do not implement inheritance
**Source:** https://github.com/3MFConsortium/lib3mf/issues/188.

E.g. for [lib3mf.xml]:(https://github.com/3MFConsortium/lib3mf/blob/master/AutomaticComponentToolkit/lib3mf.xml)
Node bindings don't inherit from parent classes, so for example `CObjectIterator` only has its own methods (`GetCurrentObject`), and you cannot call `MoveNext` on it, which results in objects being inaccessible.

@Ugzuzg: could you provide the correct NodeJS code for e.g. the `CObjectIterator`? I will modify the generator afterwards to produce this.

贡献指南

打开贡献指南

调研方向

从 lib3mf.xml 和为 CObjectIterator 生成的 NodeJS 绑定开始;验证其父类方法是如何表示的,以及是否缺少 MoveNext。然后跟踪生成此绑定的生成器路径,并将输出与 issue 中描述的继承关系进行比较。当 CObjectIterator 上可以使用 MoveNext 等继承方法,并且生成器能够一致地生成这些方法时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
go, node.js
领域
tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。