Issues: associate to Nodes? #32
alessiostalla
started this conversation in
Ideas
Replies: 1 comment
-
I think it would make sense to associate issues to nodes, but some issues are not associated to nodes (e.g., lexical and parsing issues). So, yes, the target could either be a Node or a Position/Range. I think both solutions would make sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, an Issue has a reference to a Position (or Range in Kolasu 1.6).
In some of our transpilers, we create Issues starting from a problematic AST Node. However the issue can't reference the node and it has to store its position instead. If we later want to retrieve the node, or if we want to flag/decorate the node in a viewer with the associated issues, we have to search the AST by position, for each issue.
Would it make sense to do one or both of the following?
Either point would allow to obtain the issues related to a node without searching them by position. With 1. we make it easy to go from Issue to Node, with 2. the opposite direction from Node to Issues.
Beta Was this translation helpful? Give feedback.
All reactions