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

Expose error labels or source locations in ComposerError #76

Open
Runi-c opened this issue Feb 20, 2024 · 0 comments
Open

Expose error labels or source locations in ComposerError #76

Runi-c opened this issue Feb 20, 2024 · 0 comments

Comments

@Runi-c
Copy link

Runi-c commented Feb 20, 2024

There's some useful logic buried in ComposerError::emit_to_string_internal for calculating labels and notes to create a diagnostic for the error.

It would be useful for tooling integration if it could be made part of naga_oil's public API somehow, similar to how naga exposes ParseError::labels, ParseError::location.

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

No branches or pull requests

1 participant