aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated/tokens.rs
diff options
context:
space:
mode:
authorDavid Lattimore <[email protected]>2020-07-03 03:57:17 +0100
committerDavid Lattimore <[email protected]>2020-07-24 12:34:00 +0100
commit1fce8b6ba32bebba36d588d07781e9e578845728 (patch)
treec027096421e49a7e0279711e0ccd7491ca3d6a9a /crates/ra_syntax/src/ast/generated/tokens.rs
parent2b53639e381b1f17c829fb33f6e4135a9c930f41 (diff)
SSR: Change the way rules are stored internally.
Previously we had: - Multiple rules - Each rule had its pattern parsed as an expression, path etc This meant that there were two levels at which there could be multiple rules. Now we just have multiple rules. If a pattern can parse as more than one kind of thing, then they get stored as multiple separate rules. We also now don't have separate fields for the different kinds of things that a pattern can parse as. This makes adding new kinds of things simpler. Previously, add_search_pattern would construct a rule with a dummy replacement. Now the replacement is an Option. This is slightly cleaner and also opens the way for parsing the replacement template as the same kind of thing as the search pattern.
Diffstat (limited to 'crates/ra_syntax/src/ast/generated/tokens.rs')
0 files changed, 0 insertions, 0 deletions