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

Now do I add payload to a node in the tree #26

Open
suhr opened this issue Jul 30, 2019 · 1 comment
Open

Now do I add payload to a node in the tree #26

suhr opened this issue Jul 30, 2019 · 1 comment

Comments

@suhr
Copy link

suhr commented Jul 30, 2019

No description provided.

@matklad
Copy link
Member

matklad commented Jul 30, 2019

There's not build-in support for node payloads.

The two approaches we are using in rust-analyzer are:

  • store extra data in the hash-map on the side, keyed by (TextRange, SyntaxKind) tuple
  • lower raw concrete syntax tree into AST-like representation, and add data there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants