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

Entities should record where they're defined. #65

Open
jimsynz opened this issue Oct 25, 2023 · 1 comment
Open

Entities should record where they're defined. #65

jimsynz opened this issue Oct 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jimsynz
Copy link
Contributor

jimsynz commented Oct 25, 2023

It'd be awesome if all entities contained a record of the line and column numbers for where they're defined in the user's code, something like:

%MyEntity{
  span: %Spark.Span{start: %Spark.Pos{line: 1, col: 1}, end: %Spark.Pos{line: 1, col: 54}},
  # ...
}

This way we could provide better error messages to our users.

@jimsynz jimsynz added the enhancement New feature or request label Oct 25, 2023
@zachdaniel
Copy link
Contributor

Yes I would love this :)

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

No branches or pull requests

2 participants