Autodesk / Autodesk/AutomaticComponentToolkit
NodeJS bindings do not implement inheritance
- Dominant language
- Go
- Stars
- 53
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
Research direction
Start with lib3mf.xml and the generated NodeJS binding for CObjectIterator; verify how its parent methods are represented and whether MoveNext is missing. Then trace the generator path that produces this binding and compare the output with the inheritance described in the issue. Done means inherited methods such as MoveNext are available on CObjectIterator and the generator produces them consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100