Skip to content

#[godot_api(secondary)] inherent impl blocks do not register docs. #1354

@Houtamelo

Description

@Houtamelo

If you put a function inside a secondary impl block, that function will not have docs generated upon registration.

This can be easily verified by looking at the docs variable in src/class/data_models/inherent_impl.rs line 95:

let docs = crate::docs::document_inherent_impl(&funcs, &consts, &signals);
- The variable is only used in the primary api.

I've fixed this in 659d473 so it could be cherry-picked into here, though there might be conflicts that need to be resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugc: registerRegister classes, functions and other symbols to GDScript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions