facebook / starlark-rust

A Rust implementation of the Starlark language
Apache License 2.0
699 stars 57 forks source link

Add label parser to the Bazel LSP #101

Closed cameron-martin closed 8 months ago

cameron-martin commented 9 months ago

Instead of parsing labels ad-hoc in resolve_folder, this introduces a separate label parser. This allows re-using this when doing a "go to definition" for a label that is not in a load statement. See #100 for more context.

facebook-github-bot commented 8 months ago

@ndmitchell has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 8 months ago

@ndmitchell merged this pull request in facebookexperimental/starlark-rust@5cc4c373aaa8aa57b49679f61fa1e970f062c871.