diff options
author | Edwin Cheng <[email protected]> | 2019-12-12 13:47:54 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-12-18 03:20:22 +0000 |
commit | aceb9d7fb0809ccf364514d9177342edea144c59 (patch) | |
tree | 138ee608477eb951072eeac6ace239647e3d01a3 /crates/ra_tt | |
parent | 46ca40ccfced6945e05a25979a2703ad967d2fe0 (diff) |
Add token ids for all tt::Leaf
Diffstat (limited to 'crates/ra_tt')
-rw-r--r-- | crates/ra_tt/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_tt/src/lib.rs b/crates/ra_tt/src/lib.rs index e7bfd5fd2..209ca4048 100644 --- a/crates/ra_tt/src/lib.rs +++ b/crates/ra_tt/src/lib.rs | |||
@@ -64,12 +64,14 @@ pub enum Delimiter { | |||
64 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 64 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
65 | pub struct Literal { | 65 | pub struct Literal { |
66 | pub text: SmolStr, | 66 | pub text: SmolStr, |
67 | pub id: TokenId, | ||
67 | } | 68 | } |
68 | 69 | ||
69 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 70 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
70 | pub struct Punct { | 71 | pub struct Punct { |
71 | pub char: char, | 72 | pub char: char, |
72 | pub spacing: Spacing, | 73 | pub spacing: Spacing, |
74 | pub id: TokenId, | ||
73 | } | 75 | } |
74 | 76 | ||
75 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 77 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |