rust/crates/hir_expand/src
Aleksey Kladov dbb702cfc1 internal: remove accidental code re-use
FragmentKind played two roles:

* entry point to the parser
* syntactic category of a macro call

These are different use-cases, and warrant different types. For example,
macro can't expand to visibility, but we have such fragment today.

This PR introduces `ExpandsTo` enum to separate this two use-cases.

I suspect we might further split `FragmentKind` into `$x:specifier` enum
specific to MBE, and a general parser entry point, but that's for
another PR!
2021-09-05 22:36:36 +03:00
..
ast_id_map.rs add more counts 2021-01-27 12:16:24 +03:00
builtin_attr.rs Don't ask for the builtin attribute input twice 2021-08-21 12:55:05 +02:00
builtin_derive.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
builtin_macro.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
db.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
eager.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
hygiene.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
lib.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
name.rs Refactor & improve handling of overloaded binary operators 2021-08-22 17:35:50 +02:00
proc_macro.rs internal: reduce coupling 2021-08-31 19:14:33 +03:00
quote.rs Escape characters in builtin macros correctly 2021-05-09 19:57:29 +08:00
test_db.rs Introduce anchored_path 2020-12-09 19:07:05 +03:00