rust-analyzer/crates/hir_expand/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
..
ast_id_map.rs Migrate to SyntaxNodePtr in new rowan 2021-12-29 23:48:53 -08:00
builtin_attr_macro.rs Check for derive attributes by item path, not derive identifier 2021-11-17 20:46:57 +01:00
builtin_derive_macro.rs Make syntax bridge fully infallible 2022-01-24 17:27:39 +01:00
builtin_fn_macro.rs Shrink mbe::ExpandError and mbe::ParseError 2022-02-03 17:25:24 +01:00
db.rs Various fixes 2022-02-09 16:30:10 +01:00
eager.rs More correct $crate handling in eager macros 2022-01-27 16:57:53 +01:00
fixup.rs Format again 2022-02-09 17:52:15 +01:00
hygiene.rs Various fixes 2022-02-09 16:30:10 +01:00
lib.rs Merge #11444 2022-02-12 12:48:46 +00:00
mod_path.rs Fix resolution of eager macro contents 2022-01-26 18:31:07 +01:00
name.rs feat: Honor recursion limit configuration 2022-01-28 11:31:59 +03:00
proc_macro.rs Shrink mbe::ExpandError and mbe::ParseError 2022-02-03 17:25:24 +01:00
quote.rs Escape characters in builtin macros correctly 2021-05-09 19:57:29 +08:00