rust-analyzer/crates/parser/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
..
grammar internal: improve style 2021-08-30 15:55:40 +03:00
syntax_kind internal: overhaul code generation 2021-07-03 22:11:03 +03:00
event.rs Fix warnings when running cargo doc --document-private-items 2021-01-18 16:44:40 -05:00
grammar.rs tree-wide: fix rustdoc warnings, add some links 2021-08-03 21:34:20 -07:00
lib.rs internal: remove accidental code re-use 2021-09-05 22:36:36 +03:00
parser.rs Fix three more (reverse) “a”/“an” typos 2021-08-22 17:48:15 +02:00
syntax_kind.rs Add even more docs 2021-05-22 17:20:22 +03:00
token_set.rs CONST LOOPS ARE HERE 2020-08-27 18:12:01 +02:00