Skip to content
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

Put column numbers into Location #5375

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Put column numbers into Location #5375

wants to merge 9 commits into from

Conversation

bbrehm
Copy link
Contributor

@bbrehm bbrehm commented Mar 14, 2025

This puts column numbers into Location, and does some minor cleanup of the code to generate Location nodes.

The old LocationCreator.apply method stays for a short time, in order to facilitate CS compat (i.e. it should be possible to use this without any CS adjustments). It will get thrown out in the near future, though.

@bbrehm bbrehm requested a review from mpollmeier March 14, 2025 09:37
Copy link
Contributor

@mpollmeier mpollmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general idea is good, I just had a few code style remarks. Instead of having a lengthy conversation here I simply pushed them to your branch. Hope that's ok, please take a look. Main things:

  • use Try instead of try (more readable, doesn't catch FatalErrors like OutOfMemoryError)
  • refactor to use val insteaad of var

@max-leuthaeuser
Copy link
Contributor

@bbrehm So this one can go in or does it need some further adjustments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants