diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-29 13:14:16 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-29 13:14:16 +0100 |
commit | 247faf271b9098624cb0b09dd4914da66497dd5a (patch) | |
tree | b327bd6ab1a67f3655a81f37547af05c2ceaef2b /xtask/src/codegen | |
parent | 7869b01b702d1f12acb03ac131b6eb90ad82e9bb (diff) | |
parent | c9f0f47bbba3d02a6389af14aaf1c3d1d088d191 (diff) |
Merge #9027
9027: feat: Attribute completion is context aware r=Veykril a=Veykril
This splits off the `lint` and `derive` completions into their own submodules of `attribute`.
The idea is to create a lazy global hashmap that maps `SyntaxKind` to attribute names(`&[&str]`) in which we index with the syntax kind of the "thing" we are attributing giving us the attributes back that are valid for this kind. Then we use this name to do a binary search on the attribute list to fetch and build the corresponding completion item.
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'xtask/src/codegen')
0 files changed, 0 insertions, 0 deletions