We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The AST-Parser will parse the source code from the offset 0. oxc_linter has ParticialLoader which will create multiple source codes for <script> .
oxc_linter
ParticialLoader
<script>
At the moment we need to remap the Diagnostic span offset to its original source code offset. oxc_linter implementation: #9484 oxc_language_server:
Diagnostic
oxc/crates/oxc_language_server/src/linter/isolated_lint_handler.rs
Lines 193 to 212 in 1ed18bd
I would like to give the ast parser an start offset (default 0) which he uses as a start position to generate the Ast::Kind spans.
Ast::Kind
The text was updated successfully, but these errors were encountered:
I'm against adding a start offset to the parser - it's actually a lot of work.
Let's see whether we can improve the diagnostic reporter instead. Remember we use a fork https://github.com/oxc-project/oxc-miette
Sorry, something went wrong.
No branches or pull requests
The AST-Parser will parse the source code from the offset 0.
oxc_linter
hasParticialLoader
which will create multiple source codes for<script>
.At the moment we need to remap the
Diagnostic
span offset to its original source code offset.oxc_linter implementation: #9484
oxc_language_server:
oxc/crates/oxc_language_server/src/linter/isolated_lint_handler.rs
Lines 193 to 212 in 1ed18bd
I would like to give the ast parser an start offset (default 0) which he uses as a start position to generate the
Ast::Kind
spans.The text was updated successfully, but these errors were encountered: