Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

XRBK macro: restructure around a mode system #97

Open
Antikyth opened this issue Jan 26, 2023 · 0 comments
Open

XRBK macro: restructure around a mode system #97

Antikyth opened this issue Jan 26, 2023 · 0 comments
Labels
task An essential task for a planned milestone.

Comments

@Antikyth
Copy link
Collaborator

XRBK macro should be able to be run in two modes: one for normal expansion, and the othe for expansion specifically for IntelliJ: the second mode would have code generated which makes IntelliJ have a better understanding of how to provide suggestions.

For example, attributes wouldn't be removed (e.g. derives), which would mean IntelliJ can present them as being actual attributes, when in reality they are still removed as far as the compiler is concerned. This is recommended by IntelliJ - they set an environment variable during macro expansion specifically to allow for this functionality.

This probably requires some restructuring of XRBK macro. While doing that restructuring, it would be good to make it easier to define new custom attributes in XRBK macro - just something to think about. Also, the code for sources is very difficult, perhaps that can be improved somehow.

@Antikyth Antikyth added the task An essential task for a planned milestone. label Jan 26, 2023
@github-project-automation github-project-automation bot moved this to Unassigned in X Rust Bindings Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
task An essential task for a planned milestone.
Projects
Status: Unassigned
Development

No branches or pull requests

1 participant