You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2023. It is now read-only.
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.
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.