-
Notifications
You must be signed in to change notification settings - Fork 156
Add syntax type and definiens to visualization #359
Conversation
hendrikvanantwerpen
commented
Dec 1, 2023
- Do not serialize empty spans
- Add syntax type to visualization
- Serialize definiens span and add to visualization
Performance SummaryComparing base 1b01a8c with head c8ee438 on typescript_benchmark benchmark. For details see workflow artifacts. Note that performance is tested on the last commits with changes in BeforeAfter |
|
Should empty spans include ones where the start and end are equal? |
Good question. My thinking was that an empty span starting beyond 0:0 means that that information was explicitly set. Now I realize that an empty span at 0:0 sometimes has been explicitly set as well. An example is a module name with So the test was intended to correspond to "the span was explicitly set", but now it seems we cannot reliably do it. We could make the spans optional, like syntax type, so that we have an explicit signal. But at that point, it might be more idiomatic to have separate supplemental arenas for the different fields of source info... |
|
@dcreager I tried using is empty and starts at zero to detect whether a span or definiens span was actually set by the user. However, we realized that this is not valid. If I wanted to make that explicit, I see two options:
What are your thoughts here? Perhaps the planned changes to lsp positions are also relevant to this? |
|
The github/stack-graphs repository is no longer being maintained. As per #502, I'm closing all issues and pull requests before archiving the repository. |