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

Anonymous givens are not in the outline #4

Open
bishabosha opened this issue Apr 23, 2024 · 1 comment
Open

Anonymous givens are not in the outline #4

bishabosha opened this issue Apr 23, 2024 · 1 comment

Comments

@bishabosha
Copy link

bishabosha commented Apr 23, 2024

class Bar:
  def foo: Int = 23
  given Foo()
  given baz: Baz()

The outline would only show

- Bar {}
  - foo
  - baz

i.e. missing the anonymous Foo given.

the name isn't visible in the AST, (compiler generates given_Foo) but it would be good to provide some placeholder there (is this possible?)

@filipwiech
Copy link

filipwiech commented May 9, 2024

It's worth noting that tree-sitter outline queries will be used to chunk files, to help power the LLM integrations (semantic index), see for example zed-industries/zed#11283 and zed-industries/zed#10329, although I don't know what the exact impact of this could be here, if any. 👍

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

2 participants