rust-analyzer/crates/hir_def/src
bors[bot] 7a17fb9c43
Merge #11444
11444: feat: Fix up syntax errors in attribute macro inputs to make completion work more often r=flodiebold a=flodiebold

This implements the "fix up syntax nodes" workaround mentioned in #11014. It isn't much more than a proof of concept; I have only implemented a few cases, but it already helps quite a bit.

Some notes:
 - I'm not super happy about how much the fixup procedure needs to interact with the syntax node -> token tree conversion code (e.g. needing to share the token map). This could maybe be simplified with some refactoring of that code.
 - It would maybe be nice to have the fixup procedure reuse or share information with the parser, though I'm not really sure how much that would actually help.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2022-02-12 12:48:46 +00:00
..
body feat: Honor recursion limit configuration 2022-01-28 11:31:59 +03:00
item_tree Fix resolution of eager macro contents 2022-01-26 18:31:07 +01:00
macro_expansion_tests Reverse fixups 2022-02-07 19:53:39 +01:00
nameres feat: Honor recursion limit configuration 2022-01-28 11:31:59 +03:00
path Fix resolution of eager macro contents 2022-01-26 18:31:07 +01:00
adt.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
attr.rs Fix cfg_attr invalidating derive identifier IDE functionality 2022-01-30 22:47:16 +01:00
body.rs Use crate_limits query in macro expansion 2022-01-28 11:31:59 +03:00
builtin_attr.rs Improve hover message for inert attributes 2021-12-03 20:28:15 +01:00
builtin_type.rs Introduce TypeCtor::Scalar 2021-02-28 01:20:04 +01:00
child_by_source.rs Reduce allocations in attribute collection 2022-01-30 22:18:32 +01:00
data.rs Clean up assoc item collection a bit 2022-01-14 18:45:23 +01:00
db.rs feat: Honor recursion limit configuration 2022-01-28 11:31:59 +03:00
dyn_map.rs Rename ra_hir_def -> hir_def 2020-08-13 16:29:33 +02:00
expr.rs Replace Vec with Box in Path.generic_args field 2021-11-20 16:37:41 +01:00
find_path.rs Fix resolution of eager macro contents 2022-01-26 18:31:07 +01:00
generics.rs Remove InFile wrapping from DynMap keys 2022-01-08 12:16:44 +01:00
import_map.rs Simplify 2021-12-21 18:28:04 +01:00
intern.rs Revert "Revert "Bump dashmap"" 2022-02-09 09:19:57 +02:00
item_scope.rs Use FileAstId<ast::Adt> in nameres where appropriate instead 2022-01-07 14:20:27 +01:00
item_tree.rs Fix concatenation of super mod paths 2022-01-11 15:39:13 +01:00
keys.rs Remove InFile wrapping from DynMap keys 2022-01-08 12:16:44 +01:00
lang_item.rs feat: Deprioritize ops methods in completion 2022-01-11 09:26:53 +01:00
lib.rs Fix resolution of eager macro contents 2022-01-26 18:31:07 +01:00
macro_expansion_tests.rs Replace expressions with errors in them 2022-02-09 11:58:52 +01:00
nameres.rs feat: Honor recursion limit configuration 2022-01-28 11:31:59 +03:00
path.rs Move attribute path completions into attribute completion module 2022-02-03 15:50:14 +01:00
per_ns.rs Add more profiling for flyimports 2021-06-10 23:43:46 +03:00
resolver.rs Remove some allocs 2021-12-09 18:04:32 +01:00
src.rs Make ItemTreeId its own type 2021-03-18 01:53:22 +01:00
test_db.rs fix: Typos 2021-07-27 18:31:21 -04:00
trace.rs Use ‘index’ terminology for arena consistently 2021-01-17 18:38:08 +11:00
type_ref.rs Replace if let with match where appropriate 2021-10-05 09:00:21 +11:00
visibility.rs Fix resolution of eager macro contents 2022-01-26 18:31:07 +01:00