Skip to content

fix: handle namespace extern declarations and use correct operator input names#1

Open
shx20140617 wants to merge 2 commits into
scratch-fuse:mainfrom
shx20140617:fix/namespace-extern-handling
Open

fix: handle namespace extern declarations and use correct operator input names#1
shx20140617 wants to merge 2 commits into
scratch-fuse:mainfrom
shx20140617:fix/namespace-extern-handling

Conversation

@shx20140617

Copy link
Copy Markdown

Summary: Add AssignmentStatement handling in extractDeclarations() to register extern definitions from name = { opcode, type, args } assignments inside namespace/module bodies. Add getProgramInfo(), Namespace type, mergeNamespace() exports. Change all VALUE1/VALUE2 to NUM1/NUM2 in list/string helper methods to match Scratch sb3 format for arithmetic operators.

- Add extraction of extern declarations from 'name = { opcode, type, args }' assignments inside namespace/module bodies
- Properly handle field-type arguments with menu properties
- Add getProgramInfo function, Namespace type, and mergeNamespace helper
- listReps insert/at/replace methods now use NUM1/NUM2 instead of VALUE1/VALUE2
- listReps indexOf method now uses NUM1/NUM2 for operator_subtract
- varReps at method now uses NUM1/NUM2 for operator_add
- Aligns with Scratch sb3 format where arithmetic operators use NUM1/NUM2 inputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant