-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add syntax type and definiens to visualization #359
base: main
Are you sure you want to change the base?
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 Before
After
|
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? |