Skip to content

feat(classfile): annotate spx resource schema#1491

Draft
aofei wants to merge 1 commit intogoplus:devfrom
aofei:classfile-resource-directive-comments
Draft

feat(classfile): annotate spx resource schema#1491
aofei wants to merge 1 commit intogoplus:devfrom
aofei:classfile-resource-directive-comments

Conversation

@aofei
Copy link
Copy Markdown
Member

@aofei aofei commented Apr 15, 2026

Add classfile resource directives to the exported resource name types and handle-bearing widget and sprite types in spx.

Also annotate the public Sprite API surface and the corresponding SpriteImpl methods with resource-api-scope-binding directives for scoped costume and animation resources.

Updates goplus/xgo#2704

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces xgo metadata annotations across several files to define resource classes, discovery patterns, and API scope bindings for types such as Monitor, Sprite, and various name aliases. These tags are used to facilitate resource management and discovery within the xgo framework. A review comment points out a potential typo in the discovery pattern for SpriteAnimationName, suggesting it be updated to maintain consistency with the naming conventions used for other resources in the project.

Comment thread types.go
Add classfile resource directives to the exported resource name types
and handle-bearing widget and sprite types in spx.

Also annotate the public `Sprite` API surface and the corresponding
`SpriteImpl` methods with `resource-api-scope-binding` directives for
scoped costume and animation resources.

Updates goplus/xgo#2704

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@aofei aofei force-pushed the classfile-resource-directive-comments branch from 1ad9a44 to 00ad362 Compare April 15, 2026 07:01
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