diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/generated/tokens.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated/tokens.rs | 672 |
1 files changed, 168 insertions, 504 deletions
diff --git a/crates/ra_syntax/src/ast/generated/tokens.rs b/crates/ra_syntax/src/ast/generated/tokens.rs index 3aea5bef1..ec3ca4a5b 100644 --- a/crates/ra_syntax/src/ast/generated/tokens.rs +++ b/crates/ra_syntax/src/ast/generated/tokens.rs | |||
@@ -28,9 +28,7 @@ impl AstToken for Semi { | |||
28 | None | 28 | None |
29 | } | 29 | } |
30 | } | 30 | } |
31 | fn syntax(&self) -> &SyntaxToken { | 31 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
32 | &self.syntax | ||
33 | } | ||
34 | } | 32 | } |
35 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 33 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
36 | pub struct Comma { | 34 | pub struct Comma { |
@@ -55,9 +53,7 @@ impl AstToken for Comma { | |||
55 | None | 53 | None |
56 | } | 54 | } |
57 | } | 55 | } |
58 | fn syntax(&self) -> &SyntaxToken { | 56 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
59 | &self.syntax | ||
60 | } | ||
61 | } | 57 | } |
62 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 58 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
63 | pub struct LParen { | 59 | pub struct LParen { |
@@ -82,9 +78,7 @@ impl AstToken for LParen { | |||
82 | None | 78 | None |
83 | } | 79 | } |
84 | } | 80 | } |
85 | fn syntax(&self) -> &SyntaxToken { | 81 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
86 | &self.syntax | ||
87 | } | ||
88 | } | 82 | } |
89 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 83 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
90 | pub struct RParen { | 84 | pub struct RParen { |
@@ -109,9 +103,7 @@ impl AstToken for RParen { | |||
109 | None | 103 | None |
110 | } | 104 | } |
111 | } | 105 | } |
112 | fn syntax(&self) -> &SyntaxToken { | 106 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
113 | &self.syntax | ||
114 | } | ||
115 | } | 107 | } |
116 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 108 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
117 | pub struct LCurly { | 109 | pub struct LCurly { |
@@ -136,9 +128,7 @@ impl AstToken for LCurly { | |||
136 | None | 128 | None |
137 | } | 129 | } |
138 | } | 130 | } |
139 | fn syntax(&self) -> &SyntaxToken { | 131 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
140 | &self.syntax | ||
141 | } | ||
142 | } | 132 | } |
143 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 133 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
144 | pub struct RCurly { | 134 | pub struct RCurly { |
@@ -163,9 +153,7 @@ impl AstToken for RCurly { | |||
163 | None | 153 | None |
164 | } | 154 | } |
165 | } | 155 | } |
166 | fn syntax(&self) -> &SyntaxToken { | 156 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
167 | &self.syntax | ||
168 | } | ||
169 | } | 157 | } |
170 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 158 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
171 | pub struct LBrack { | 159 | pub struct LBrack { |
@@ -190,9 +178,7 @@ impl AstToken for LBrack { | |||
190 | None | 178 | None |
191 | } | 179 | } |
192 | } | 180 | } |
193 | fn syntax(&self) -> &SyntaxToken { | 181 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
194 | &self.syntax | ||
195 | } | ||
196 | } | 182 | } |
197 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 183 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
198 | pub struct RBrack { | 184 | pub struct RBrack { |
@@ -217,9 +203,7 @@ impl AstToken for RBrack { | |||
217 | None | 203 | None |
218 | } | 204 | } |
219 | } | 205 | } |
220 | fn syntax(&self) -> &SyntaxToken { | 206 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
221 | &self.syntax | ||
222 | } | ||
223 | } | 207 | } |
224 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 208 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
225 | pub struct LAngle { | 209 | pub struct LAngle { |
@@ -244,9 +228,7 @@ impl AstToken for LAngle { | |||
244 | None | 228 | None |
245 | } | 229 | } |
246 | } | 230 | } |
247 | fn syntax(&self) -> &SyntaxToken { | 231 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
248 | &self.syntax | ||
249 | } | ||
250 | } | 232 | } |
251 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 233 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
252 | pub struct RAngle { | 234 | pub struct RAngle { |
@@ -271,9 +253,7 @@ impl AstToken for RAngle { | |||
271 | None | 253 | None |
272 | } | 254 | } |
273 | } | 255 | } |
274 | fn syntax(&self) -> &SyntaxToken { | 256 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
275 | &self.syntax | ||
276 | } | ||
277 | } | 257 | } |
278 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 258 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
279 | pub struct At { | 259 | pub struct At { |
@@ -298,9 +278,7 @@ impl AstToken for At { | |||
298 | None | 278 | None |
299 | } | 279 | } |
300 | } | 280 | } |
301 | fn syntax(&self) -> &SyntaxToken { | 281 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
302 | &self.syntax | ||
303 | } | ||
304 | } | 282 | } |
305 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 283 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
306 | pub struct Pound { | 284 | pub struct Pound { |
@@ -325,9 +303,7 @@ impl AstToken for Pound { | |||
325 | None | 303 | None |
326 | } | 304 | } |
327 | } | 305 | } |
328 | fn syntax(&self) -> &SyntaxToken { | 306 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
329 | &self.syntax | ||
330 | } | ||
331 | } | 307 | } |
332 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 308 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
333 | pub struct Tilde { | 309 | pub struct Tilde { |
@@ -352,9 +328,7 @@ impl AstToken for Tilde { | |||
352 | None | 328 | None |
353 | } | 329 | } |
354 | } | 330 | } |
355 | fn syntax(&self) -> &SyntaxToken { | 331 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
356 | &self.syntax | ||
357 | } | ||
358 | } | 332 | } |
359 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 333 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
360 | pub struct Question { | 334 | pub struct Question { |
@@ -379,9 +353,7 @@ impl AstToken for Question { | |||
379 | None | 353 | None |
380 | } | 354 | } |
381 | } | 355 | } |
382 | fn syntax(&self) -> &SyntaxToken { | 356 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
383 | &self.syntax | ||
384 | } | ||
385 | } | 357 | } |
386 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 358 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
387 | pub struct Dollar { | 359 | pub struct Dollar { |
@@ -406,9 +378,7 @@ impl AstToken for Dollar { | |||
406 | None | 378 | None |
407 | } | 379 | } |
408 | } | 380 | } |
409 | fn syntax(&self) -> &SyntaxToken { | 381 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
410 | &self.syntax | ||
411 | } | ||
412 | } | 382 | } |
413 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 383 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
414 | pub struct Amp { | 384 | pub struct Amp { |
@@ -433,9 +403,7 @@ impl AstToken for Amp { | |||
433 | None | 403 | None |
434 | } | 404 | } |
435 | } | 405 | } |
436 | fn syntax(&self) -> &SyntaxToken { | 406 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
437 | &self.syntax | ||
438 | } | ||
439 | } | 407 | } |
440 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 408 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
441 | pub struct Pipe { | 409 | pub struct Pipe { |
@@ -460,9 +428,7 @@ impl AstToken for Pipe { | |||
460 | None | 428 | None |
461 | } | 429 | } |
462 | } | 430 | } |
463 | fn syntax(&self) -> &SyntaxToken { | 431 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
464 | &self.syntax | ||
465 | } | ||
466 | } | 432 | } |
467 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 433 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
468 | pub struct Plus { | 434 | pub struct Plus { |
@@ -487,9 +453,7 @@ impl AstToken for Plus { | |||
487 | None | 453 | None |
488 | } | 454 | } |
489 | } | 455 | } |
490 | fn syntax(&self) -> &SyntaxToken { | 456 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
491 | &self.syntax | ||
492 | } | ||
493 | } | 457 | } |
494 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 458 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
495 | pub struct Star { | 459 | pub struct Star { |
@@ -514,9 +478,7 @@ impl AstToken for Star { | |||
514 | None | 478 | None |
515 | } | 479 | } |
516 | } | 480 | } |
517 | fn syntax(&self) -> &SyntaxToken { | 481 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
518 | &self.syntax | ||
519 | } | ||
520 | } | 482 | } |
521 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 483 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
522 | pub struct Slash { | 484 | pub struct Slash { |
@@ -541,9 +503,7 @@ impl AstToken for Slash { | |||
541 | None | 503 | None |
542 | } | 504 | } |
543 | } | 505 | } |
544 | fn syntax(&self) -> &SyntaxToken { | 506 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
545 | &self.syntax | ||
546 | } | ||
547 | } | 507 | } |
548 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 508 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
549 | pub struct Caret { | 509 | pub struct Caret { |
@@ -568,9 +528,7 @@ impl AstToken for Caret { | |||
568 | None | 528 | None |
569 | } | 529 | } |
570 | } | 530 | } |
571 | fn syntax(&self) -> &SyntaxToken { | 531 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
572 | &self.syntax | ||
573 | } | ||
574 | } | 532 | } |
575 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 533 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
576 | pub struct Percent { | 534 | pub struct Percent { |
@@ -595,9 +553,7 @@ impl AstToken for Percent { | |||
595 | None | 553 | None |
596 | } | 554 | } |
597 | } | 555 | } |
598 | fn syntax(&self) -> &SyntaxToken { | 556 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
599 | &self.syntax | ||
600 | } | ||
601 | } | 557 | } |
602 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 558 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
603 | pub struct Underscore { | 559 | pub struct Underscore { |
@@ -622,9 +578,7 @@ impl AstToken for Underscore { | |||
622 | None | 578 | None |
623 | } | 579 | } |
624 | } | 580 | } |
625 | fn syntax(&self) -> &SyntaxToken { | 581 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
626 | &self.syntax | ||
627 | } | ||
628 | } | 582 | } |
629 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 583 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
630 | pub struct Dot { | 584 | pub struct Dot { |
@@ -649,9 +603,7 @@ impl AstToken for Dot { | |||
649 | None | 603 | None |
650 | } | 604 | } |
651 | } | 605 | } |
652 | fn syntax(&self) -> &SyntaxToken { | 606 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
653 | &self.syntax | ||
654 | } | ||
655 | } | 607 | } |
656 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 608 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
657 | pub struct Dotdot { | 609 | pub struct Dotdot { |
@@ -676,9 +628,7 @@ impl AstToken for Dotdot { | |||
676 | None | 628 | None |
677 | } | 629 | } |
678 | } | 630 | } |
679 | fn syntax(&self) -> &SyntaxToken { | 631 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
680 | &self.syntax | ||
681 | } | ||
682 | } | 632 | } |
683 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 633 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
684 | pub struct Dotdotdot { | 634 | pub struct Dotdotdot { |
@@ -703,9 +653,7 @@ impl AstToken for Dotdotdot { | |||
703 | None | 653 | None |
704 | } | 654 | } |
705 | } | 655 | } |
706 | fn syntax(&self) -> &SyntaxToken { | 656 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
707 | &self.syntax | ||
708 | } | ||
709 | } | 657 | } |
710 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 658 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
711 | pub struct Dotdoteq { | 659 | pub struct Dotdoteq { |
@@ -730,9 +678,7 @@ impl AstToken for Dotdoteq { | |||
730 | None | 678 | None |
731 | } | 679 | } |
732 | } | 680 | } |
733 | fn syntax(&self) -> &SyntaxToken { | 681 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
734 | &self.syntax | ||
735 | } | ||
736 | } | 682 | } |
737 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 683 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
738 | pub struct Colon { | 684 | pub struct Colon { |
@@ -757,9 +703,7 @@ impl AstToken for Colon { | |||
757 | None | 703 | None |
758 | } | 704 | } |
759 | } | 705 | } |
760 | fn syntax(&self) -> &SyntaxToken { | 706 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
761 | &self.syntax | ||
762 | } | ||
763 | } | 707 | } |
764 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 708 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
765 | pub struct Coloncolon { | 709 | pub struct Coloncolon { |
@@ -784,9 +728,7 @@ impl AstToken for Coloncolon { | |||
784 | None | 728 | None |
785 | } | 729 | } |
786 | } | 730 | } |
787 | fn syntax(&self) -> &SyntaxToken { | 731 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
788 | &self.syntax | ||
789 | } | ||
790 | } | 732 | } |
791 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 733 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
792 | pub struct Eq { | 734 | pub struct Eq { |
@@ -811,9 +753,7 @@ impl AstToken for Eq { | |||
811 | None | 753 | None |
812 | } | 754 | } |
813 | } | 755 | } |
814 | fn syntax(&self) -> &SyntaxToken { | 756 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
815 | &self.syntax | ||
816 | } | ||
817 | } | 757 | } |
818 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 758 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
819 | pub struct Eqeq { | 759 | pub struct Eqeq { |
@@ -838,9 +778,7 @@ impl AstToken for Eqeq { | |||
838 | None | 778 | None |
839 | } | 779 | } |
840 | } | 780 | } |
841 | fn syntax(&self) -> &SyntaxToken { | 781 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
842 | &self.syntax | ||
843 | } | ||
844 | } | 782 | } |
845 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 783 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
846 | pub struct FatArrow { | 784 | pub struct FatArrow { |
@@ -865,9 +803,7 @@ impl AstToken for FatArrow { | |||
865 | None | 803 | None |
866 | } | 804 | } |
867 | } | 805 | } |
868 | fn syntax(&self) -> &SyntaxToken { | 806 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
869 | &self.syntax | ||
870 | } | ||
871 | } | 807 | } |
872 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 808 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
873 | pub struct Excl { | 809 | pub struct Excl { |
@@ -892,9 +828,7 @@ impl AstToken for Excl { | |||
892 | None | 828 | None |
893 | } | 829 | } |
894 | } | 830 | } |
895 | fn syntax(&self) -> &SyntaxToken { | 831 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
896 | &self.syntax | ||
897 | } | ||
898 | } | 832 | } |
899 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 833 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
900 | pub struct Neq { | 834 | pub struct Neq { |
@@ -919,9 +853,7 @@ impl AstToken for Neq { | |||
919 | None | 853 | None |
920 | } | 854 | } |
921 | } | 855 | } |
922 | fn syntax(&self) -> &SyntaxToken { | 856 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
923 | &self.syntax | ||
924 | } | ||
925 | } | 857 | } |
926 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 858 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
927 | pub struct Minus { | 859 | pub struct Minus { |
@@ -946,9 +878,7 @@ impl AstToken for Minus { | |||
946 | None | 878 | None |
947 | } | 879 | } |
948 | } | 880 | } |
949 | fn syntax(&self) -> &SyntaxToken { | 881 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
950 | &self.syntax | ||
951 | } | ||
952 | } | 882 | } |
953 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 883 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
954 | pub struct ThinArrow { | 884 | pub struct ThinArrow { |
@@ -973,9 +903,7 @@ impl AstToken for ThinArrow { | |||
973 | None | 903 | None |
974 | } | 904 | } |
975 | } | 905 | } |
976 | fn syntax(&self) -> &SyntaxToken { | 906 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
977 | &self.syntax | ||
978 | } | ||
979 | } | 907 | } |
980 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 908 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
981 | pub struct Lteq { | 909 | pub struct Lteq { |
@@ -1000,9 +928,7 @@ impl AstToken for Lteq { | |||
1000 | None | 928 | None |
1001 | } | 929 | } |
1002 | } | 930 | } |
1003 | fn syntax(&self) -> &SyntaxToken { | 931 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1004 | &self.syntax | ||
1005 | } | ||
1006 | } | 932 | } |
1007 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 933 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1008 | pub struct Gteq { | 934 | pub struct Gteq { |
@@ -1027,9 +953,7 @@ impl AstToken for Gteq { | |||
1027 | None | 953 | None |
1028 | } | 954 | } |
1029 | } | 955 | } |
1030 | fn syntax(&self) -> &SyntaxToken { | 956 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1031 | &self.syntax | ||
1032 | } | ||
1033 | } | 957 | } |
1034 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 958 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1035 | pub struct Pluseq { | 959 | pub struct Pluseq { |
@@ -1054,9 +978,7 @@ impl AstToken for Pluseq { | |||
1054 | None | 978 | None |
1055 | } | 979 | } |
1056 | } | 980 | } |
1057 | fn syntax(&self) -> &SyntaxToken { | 981 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1058 | &self.syntax | ||
1059 | } | ||
1060 | } | 982 | } |
1061 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 983 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1062 | pub struct Minuseq { | 984 | pub struct Minuseq { |
@@ -1081,9 +1003,7 @@ impl AstToken for Minuseq { | |||
1081 | None | 1003 | None |
1082 | } | 1004 | } |
1083 | } | 1005 | } |
1084 | fn syntax(&self) -> &SyntaxToken { | 1006 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1085 | &self.syntax | ||
1086 | } | ||
1087 | } | 1007 | } |
1088 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1008 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1089 | pub struct Pipeeq { | 1009 | pub struct Pipeeq { |
@@ -1108,9 +1028,7 @@ impl AstToken for Pipeeq { | |||
1108 | None | 1028 | None |
1109 | } | 1029 | } |
1110 | } | 1030 | } |
1111 | fn syntax(&self) -> &SyntaxToken { | 1031 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1112 | &self.syntax | ||
1113 | } | ||
1114 | } | 1032 | } |
1115 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1033 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1116 | pub struct Ampeq { | 1034 | pub struct Ampeq { |
@@ -1135,9 +1053,7 @@ impl AstToken for Ampeq { | |||
1135 | None | 1053 | None |
1136 | } | 1054 | } |
1137 | } | 1055 | } |
1138 | fn syntax(&self) -> &SyntaxToken { | 1056 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1139 | &self.syntax | ||
1140 | } | ||
1141 | } | 1057 | } |
1142 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1058 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1143 | pub struct Careteq { | 1059 | pub struct Careteq { |
@@ -1162,9 +1078,7 @@ impl AstToken for Careteq { | |||
1162 | None | 1078 | None |
1163 | } | 1079 | } |
1164 | } | 1080 | } |
1165 | fn syntax(&self) -> &SyntaxToken { | 1081 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1166 | &self.syntax | ||
1167 | } | ||
1168 | } | 1082 | } |
1169 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1083 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1170 | pub struct Slasheq { | 1084 | pub struct Slasheq { |
@@ -1189,9 +1103,7 @@ impl AstToken for Slasheq { | |||
1189 | None | 1103 | None |
1190 | } | 1104 | } |
1191 | } | 1105 | } |
1192 | fn syntax(&self) -> &SyntaxToken { | 1106 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1193 | &self.syntax | ||
1194 | } | ||
1195 | } | 1107 | } |
1196 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1108 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1197 | pub struct Stareq { | 1109 | pub struct Stareq { |
@@ -1216,9 +1128,7 @@ impl AstToken for Stareq { | |||
1216 | None | 1128 | None |
1217 | } | 1129 | } |
1218 | } | 1130 | } |
1219 | fn syntax(&self) -> &SyntaxToken { | 1131 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1220 | &self.syntax | ||
1221 | } | ||
1222 | } | 1132 | } |
1223 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1133 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1224 | pub struct Percenteq { | 1134 | pub struct Percenteq { |
@@ -1243,9 +1153,7 @@ impl AstToken for Percenteq { | |||
1243 | None | 1153 | None |
1244 | } | 1154 | } |
1245 | } | 1155 | } |
1246 | fn syntax(&self) -> &SyntaxToken { | 1156 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1247 | &self.syntax | ||
1248 | } | ||
1249 | } | 1157 | } |
1250 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1158 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1251 | pub struct Ampamp { | 1159 | pub struct Ampamp { |
@@ -1270,9 +1178,7 @@ impl AstToken for Ampamp { | |||
1270 | None | 1178 | None |
1271 | } | 1179 | } |
1272 | } | 1180 | } |
1273 | fn syntax(&self) -> &SyntaxToken { | 1181 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1274 | &self.syntax | ||
1275 | } | ||
1276 | } | 1182 | } |
1277 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1183 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1278 | pub struct Pipepipe { | 1184 | pub struct Pipepipe { |
@@ -1297,9 +1203,7 @@ impl AstToken for Pipepipe { | |||
1297 | None | 1203 | None |
1298 | } | 1204 | } |
1299 | } | 1205 | } |
1300 | fn syntax(&self) -> &SyntaxToken { | 1206 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1301 | &self.syntax | ||
1302 | } | ||
1303 | } | 1207 | } |
1304 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1208 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1305 | pub struct Shl { | 1209 | pub struct Shl { |
@@ -1324,9 +1228,7 @@ impl AstToken for Shl { | |||
1324 | None | 1228 | None |
1325 | } | 1229 | } |
1326 | } | 1230 | } |
1327 | fn syntax(&self) -> &SyntaxToken { | 1231 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1328 | &self.syntax | ||
1329 | } | ||
1330 | } | 1232 | } |
1331 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1233 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1332 | pub struct Shr { | 1234 | pub struct Shr { |
@@ -1351,9 +1253,7 @@ impl AstToken for Shr { | |||
1351 | None | 1253 | None |
1352 | } | 1254 | } |
1353 | } | 1255 | } |
1354 | fn syntax(&self) -> &SyntaxToken { | 1256 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1355 | &self.syntax | ||
1356 | } | ||
1357 | } | 1257 | } |
1358 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1258 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1359 | pub struct Shleq { | 1259 | pub struct Shleq { |
@@ -1378,9 +1278,7 @@ impl AstToken for Shleq { | |||
1378 | None | 1278 | None |
1379 | } | 1279 | } |
1380 | } | 1280 | } |
1381 | fn syntax(&self) -> &SyntaxToken { | 1281 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1382 | &self.syntax | ||
1383 | } | ||
1384 | } | 1282 | } |
1385 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1283 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1386 | pub struct Shreq { | 1284 | pub struct Shreq { |
@@ -1405,9 +1303,7 @@ impl AstToken for Shreq { | |||
1405 | None | 1303 | None |
1406 | } | 1304 | } |
1407 | } | 1305 | } |
1408 | fn syntax(&self) -> &SyntaxToken { | 1306 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1409 | &self.syntax | ||
1410 | } | ||
1411 | } | 1307 | } |
1412 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1308 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1413 | pub struct AsKw { | 1309 | pub struct AsKw { |
@@ -1432,9 +1328,7 @@ impl AstToken for AsKw { | |||
1432 | None | 1328 | None |
1433 | } | 1329 | } |
1434 | } | 1330 | } |
1435 | fn syntax(&self) -> &SyntaxToken { | 1331 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1436 | &self.syntax | ||
1437 | } | ||
1438 | } | 1332 | } |
1439 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1333 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1440 | pub struct AsyncKw { | 1334 | pub struct AsyncKw { |
@@ -1459,9 +1353,7 @@ impl AstToken for AsyncKw { | |||
1459 | None | 1353 | None |
1460 | } | 1354 | } |
1461 | } | 1355 | } |
1462 | fn syntax(&self) -> &SyntaxToken { | 1356 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1463 | &self.syntax | ||
1464 | } | ||
1465 | } | 1357 | } |
1466 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1358 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1467 | pub struct AwaitKw { | 1359 | pub struct AwaitKw { |
@@ -1486,9 +1378,7 @@ impl AstToken for AwaitKw { | |||
1486 | None | 1378 | None |
1487 | } | 1379 | } |
1488 | } | 1380 | } |
1489 | fn syntax(&self) -> &SyntaxToken { | 1381 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1490 | &self.syntax | ||
1491 | } | ||
1492 | } | 1382 | } |
1493 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1383 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1494 | pub struct BoxKw { | 1384 | pub struct BoxKw { |
@@ -1513,9 +1403,7 @@ impl AstToken for BoxKw { | |||
1513 | None | 1403 | None |
1514 | } | 1404 | } |
1515 | } | 1405 | } |
1516 | fn syntax(&self) -> &SyntaxToken { | 1406 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1517 | &self.syntax | ||
1518 | } | ||
1519 | } | 1407 | } |
1520 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1408 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1521 | pub struct BreakKw { | 1409 | pub struct BreakKw { |
@@ -1540,9 +1428,7 @@ impl AstToken for BreakKw { | |||
1540 | None | 1428 | None |
1541 | } | 1429 | } |
1542 | } | 1430 | } |
1543 | fn syntax(&self) -> &SyntaxToken { | 1431 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1544 | &self.syntax | ||
1545 | } | ||
1546 | } | 1432 | } |
1547 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1433 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1548 | pub struct ConstKw { | 1434 | pub struct ConstKw { |
@@ -1567,9 +1453,7 @@ impl AstToken for ConstKw { | |||
1567 | None | 1453 | None |
1568 | } | 1454 | } |
1569 | } | 1455 | } |
1570 | fn syntax(&self) -> &SyntaxToken { | 1456 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1571 | &self.syntax | ||
1572 | } | ||
1573 | } | 1457 | } |
1574 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1458 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1575 | pub struct ContinueKw { | 1459 | pub struct ContinueKw { |
@@ -1594,9 +1478,7 @@ impl AstToken for ContinueKw { | |||
1594 | None | 1478 | None |
1595 | } | 1479 | } |
1596 | } | 1480 | } |
1597 | fn syntax(&self) -> &SyntaxToken { | 1481 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1598 | &self.syntax | ||
1599 | } | ||
1600 | } | 1482 | } |
1601 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1483 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1602 | pub struct CrateKw { | 1484 | pub struct CrateKw { |
@@ -1621,9 +1503,7 @@ impl AstToken for CrateKw { | |||
1621 | None | 1503 | None |
1622 | } | 1504 | } |
1623 | } | 1505 | } |
1624 | fn syntax(&self) -> &SyntaxToken { | 1506 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1625 | &self.syntax | ||
1626 | } | ||
1627 | } | 1507 | } |
1628 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1508 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1629 | pub struct DynKw { | 1509 | pub struct DynKw { |
@@ -1648,9 +1528,7 @@ impl AstToken for DynKw { | |||
1648 | None | 1528 | None |
1649 | } | 1529 | } |
1650 | } | 1530 | } |
1651 | fn syntax(&self) -> &SyntaxToken { | 1531 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1652 | &self.syntax | ||
1653 | } | ||
1654 | } | 1532 | } |
1655 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1533 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1656 | pub struct ElseKw { | 1534 | pub struct ElseKw { |
@@ -1675,9 +1553,7 @@ impl AstToken for ElseKw { | |||
1675 | None | 1553 | None |
1676 | } | 1554 | } |
1677 | } | 1555 | } |
1678 | fn syntax(&self) -> &SyntaxToken { | 1556 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1679 | &self.syntax | ||
1680 | } | ||
1681 | } | 1557 | } |
1682 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1558 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1683 | pub struct EnumKw { | 1559 | pub struct EnumKw { |
@@ -1702,9 +1578,7 @@ impl AstToken for EnumKw { | |||
1702 | None | 1578 | None |
1703 | } | 1579 | } |
1704 | } | 1580 | } |
1705 | fn syntax(&self) -> &SyntaxToken { | 1581 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1706 | &self.syntax | ||
1707 | } | ||
1708 | } | 1582 | } |
1709 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1583 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1710 | pub struct ExternKw { | 1584 | pub struct ExternKw { |
@@ -1729,9 +1603,7 @@ impl AstToken for ExternKw { | |||
1729 | None | 1603 | None |
1730 | } | 1604 | } |
1731 | } | 1605 | } |
1732 | fn syntax(&self) -> &SyntaxToken { | 1606 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1733 | &self.syntax | ||
1734 | } | ||
1735 | } | 1607 | } |
1736 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1608 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1737 | pub struct FalseKw { | 1609 | pub struct FalseKw { |
@@ -1756,9 +1628,7 @@ impl AstToken for FalseKw { | |||
1756 | None | 1628 | None |
1757 | } | 1629 | } |
1758 | } | 1630 | } |
1759 | fn syntax(&self) -> &SyntaxToken { | 1631 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1760 | &self.syntax | ||
1761 | } | ||
1762 | } | 1632 | } |
1763 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1633 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1764 | pub struct FnKw { | 1634 | pub struct FnKw { |
@@ -1783,9 +1653,7 @@ impl AstToken for FnKw { | |||
1783 | None | 1653 | None |
1784 | } | 1654 | } |
1785 | } | 1655 | } |
1786 | fn syntax(&self) -> &SyntaxToken { | 1656 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1787 | &self.syntax | ||
1788 | } | ||
1789 | } | 1657 | } |
1790 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1658 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1791 | pub struct ForKw { | 1659 | pub struct ForKw { |
@@ -1810,9 +1678,7 @@ impl AstToken for ForKw { | |||
1810 | None | 1678 | None |
1811 | } | 1679 | } |
1812 | } | 1680 | } |
1813 | fn syntax(&self) -> &SyntaxToken { | 1681 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1814 | &self.syntax | ||
1815 | } | ||
1816 | } | 1682 | } |
1817 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1683 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1818 | pub struct IfKw { | 1684 | pub struct IfKw { |
@@ -1837,9 +1703,7 @@ impl AstToken for IfKw { | |||
1837 | None | 1703 | None |
1838 | } | 1704 | } |
1839 | } | 1705 | } |
1840 | fn syntax(&self) -> &SyntaxToken { | 1706 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1841 | &self.syntax | ||
1842 | } | ||
1843 | } | 1707 | } |
1844 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1708 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1845 | pub struct ImplKw { | 1709 | pub struct ImplKw { |
@@ -1864,9 +1728,7 @@ impl AstToken for ImplKw { | |||
1864 | None | 1728 | None |
1865 | } | 1729 | } |
1866 | } | 1730 | } |
1867 | fn syntax(&self) -> &SyntaxToken { | 1731 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1868 | &self.syntax | ||
1869 | } | ||
1870 | } | 1732 | } |
1871 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1733 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1872 | pub struct InKw { | 1734 | pub struct InKw { |
@@ -1891,9 +1753,7 @@ impl AstToken for InKw { | |||
1891 | None | 1753 | None |
1892 | } | 1754 | } |
1893 | } | 1755 | } |
1894 | fn syntax(&self) -> &SyntaxToken { | 1756 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1895 | &self.syntax | ||
1896 | } | ||
1897 | } | 1757 | } |
1898 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1758 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1899 | pub struct LetKw { | 1759 | pub struct LetKw { |
@@ -1918,9 +1778,7 @@ impl AstToken for LetKw { | |||
1918 | None | 1778 | None |
1919 | } | 1779 | } |
1920 | } | 1780 | } |
1921 | fn syntax(&self) -> &SyntaxToken { | 1781 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1922 | &self.syntax | ||
1923 | } | ||
1924 | } | 1782 | } |
1925 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1783 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1926 | pub struct LoopKw { | 1784 | pub struct LoopKw { |
@@ -1945,9 +1803,7 @@ impl AstToken for LoopKw { | |||
1945 | None | 1803 | None |
1946 | } | 1804 | } |
1947 | } | 1805 | } |
1948 | fn syntax(&self) -> &SyntaxToken { | 1806 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1949 | &self.syntax | ||
1950 | } | ||
1951 | } | 1807 | } |
1952 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1808 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1953 | pub struct MacroKw { | 1809 | pub struct MacroKw { |
@@ -1972,9 +1828,7 @@ impl AstToken for MacroKw { | |||
1972 | None | 1828 | None |
1973 | } | 1829 | } |
1974 | } | 1830 | } |
1975 | fn syntax(&self) -> &SyntaxToken { | 1831 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
1976 | &self.syntax | ||
1977 | } | ||
1978 | } | 1832 | } |
1979 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1833 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1980 | pub struct MatchKw { | 1834 | pub struct MatchKw { |
@@ -1999,9 +1853,7 @@ impl AstToken for MatchKw { | |||
1999 | None | 1853 | None |
2000 | } | 1854 | } |
2001 | } | 1855 | } |
2002 | fn syntax(&self) -> &SyntaxToken { | 1856 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2003 | &self.syntax | ||
2004 | } | ||
2005 | } | 1857 | } |
2006 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1858 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2007 | pub struct ModKw { | 1859 | pub struct ModKw { |
@@ -2026,9 +1878,7 @@ impl AstToken for ModKw { | |||
2026 | None | 1878 | None |
2027 | } | 1879 | } |
2028 | } | 1880 | } |
2029 | fn syntax(&self) -> &SyntaxToken { | 1881 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2030 | &self.syntax | ||
2031 | } | ||
2032 | } | 1882 | } |
2033 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1883 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2034 | pub struct MoveKw { | 1884 | pub struct MoveKw { |
@@ -2053,9 +1903,7 @@ impl AstToken for MoveKw { | |||
2053 | None | 1903 | None |
2054 | } | 1904 | } |
2055 | } | 1905 | } |
2056 | fn syntax(&self) -> &SyntaxToken { | 1906 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2057 | &self.syntax | ||
2058 | } | ||
2059 | } | 1907 | } |
2060 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1908 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2061 | pub struct MutKw { | 1909 | pub struct MutKw { |
@@ -2080,9 +1928,7 @@ impl AstToken for MutKw { | |||
2080 | None | 1928 | None |
2081 | } | 1929 | } |
2082 | } | 1930 | } |
2083 | fn syntax(&self) -> &SyntaxToken { | 1931 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2084 | &self.syntax | ||
2085 | } | ||
2086 | } | 1932 | } |
2087 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1933 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2088 | pub struct PubKw { | 1934 | pub struct PubKw { |
@@ -2107,9 +1953,7 @@ impl AstToken for PubKw { | |||
2107 | None | 1953 | None |
2108 | } | 1954 | } |
2109 | } | 1955 | } |
2110 | fn syntax(&self) -> &SyntaxToken { | 1956 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2111 | &self.syntax | ||
2112 | } | ||
2113 | } | 1957 | } |
2114 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1958 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2115 | pub struct RefKw { | 1959 | pub struct RefKw { |
@@ -2134,9 +1978,7 @@ impl AstToken for RefKw { | |||
2134 | None | 1978 | None |
2135 | } | 1979 | } |
2136 | } | 1980 | } |
2137 | fn syntax(&self) -> &SyntaxToken { | 1981 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2138 | &self.syntax | ||
2139 | } | ||
2140 | } | 1982 | } |
2141 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1983 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2142 | pub struct ReturnKw { | 1984 | pub struct ReturnKw { |
@@ -2161,9 +2003,7 @@ impl AstToken for ReturnKw { | |||
2161 | None | 2003 | None |
2162 | } | 2004 | } |
2163 | } | 2005 | } |
2164 | fn syntax(&self) -> &SyntaxToken { | 2006 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2165 | &self.syntax | ||
2166 | } | ||
2167 | } | 2007 | } |
2168 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2008 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2169 | pub struct SelfKw { | 2009 | pub struct SelfKw { |
@@ -2188,9 +2028,7 @@ impl AstToken for SelfKw { | |||
2188 | None | 2028 | None |
2189 | } | 2029 | } |
2190 | } | 2030 | } |
2191 | fn syntax(&self) -> &SyntaxToken { | 2031 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2192 | &self.syntax | ||
2193 | } | ||
2194 | } | 2032 | } |
2195 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2033 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2196 | pub struct StaticKw { | 2034 | pub struct StaticKw { |
@@ -2215,9 +2053,7 @@ impl AstToken for StaticKw { | |||
2215 | None | 2053 | None |
2216 | } | 2054 | } |
2217 | } | 2055 | } |
2218 | fn syntax(&self) -> &SyntaxToken { | 2056 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2219 | &self.syntax | ||
2220 | } | ||
2221 | } | 2057 | } |
2222 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2058 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2223 | pub struct StructKw { | 2059 | pub struct StructKw { |
@@ -2242,9 +2078,7 @@ impl AstToken for StructKw { | |||
2242 | None | 2078 | None |
2243 | } | 2079 | } |
2244 | } | 2080 | } |
2245 | fn syntax(&self) -> &SyntaxToken { | 2081 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2246 | &self.syntax | ||
2247 | } | ||
2248 | } | 2082 | } |
2249 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2083 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2250 | pub struct SuperKw { | 2084 | pub struct SuperKw { |
@@ -2269,9 +2103,7 @@ impl AstToken for SuperKw { | |||
2269 | None | 2103 | None |
2270 | } | 2104 | } |
2271 | } | 2105 | } |
2272 | fn syntax(&self) -> &SyntaxToken { | 2106 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2273 | &self.syntax | ||
2274 | } | ||
2275 | } | 2107 | } |
2276 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2108 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2277 | pub struct TraitKw { | 2109 | pub struct TraitKw { |
@@ -2296,9 +2128,7 @@ impl AstToken for TraitKw { | |||
2296 | None | 2128 | None |
2297 | } | 2129 | } |
2298 | } | 2130 | } |
2299 | fn syntax(&self) -> &SyntaxToken { | 2131 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2300 | &self.syntax | ||
2301 | } | ||
2302 | } | 2132 | } |
2303 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2133 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2304 | pub struct TrueKw { | 2134 | pub struct TrueKw { |
@@ -2323,9 +2153,7 @@ impl AstToken for TrueKw { | |||
2323 | None | 2153 | None |
2324 | } | 2154 | } |
2325 | } | 2155 | } |
2326 | fn syntax(&self) -> &SyntaxToken { | 2156 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2327 | &self.syntax | ||
2328 | } | ||
2329 | } | 2157 | } |
2330 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2158 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2331 | pub struct TryKw { | 2159 | pub struct TryKw { |
@@ -2350,9 +2178,7 @@ impl AstToken for TryKw { | |||
2350 | None | 2178 | None |
2351 | } | 2179 | } |
2352 | } | 2180 | } |
2353 | fn syntax(&self) -> &SyntaxToken { | 2181 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2354 | &self.syntax | ||
2355 | } | ||
2356 | } | 2182 | } |
2357 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2183 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2358 | pub struct TypeKw { | 2184 | pub struct TypeKw { |
@@ -2377,9 +2203,7 @@ impl AstToken for TypeKw { | |||
2377 | None | 2203 | None |
2378 | } | 2204 | } |
2379 | } | 2205 | } |
2380 | fn syntax(&self) -> &SyntaxToken { | 2206 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2381 | &self.syntax | ||
2382 | } | ||
2383 | } | 2207 | } |
2384 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2208 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2385 | pub struct UnsafeKw { | 2209 | pub struct UnsafeKw { |
@@ -2404,9 +2228,7 @@ impl AstToken for UnsafeKw { | |||
2404 | None | 2228 | None |
2405 | } | 2229 | } |
2406 | } | 2230 | } |
2407 | fn syntax(&self) -> &SyntaxToken { | 2231 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2408 | &self.syntax | ||
2409 | } | ||
2410 | } | 2232 | } |
2411 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2233 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2412 | pub struct UseKw { | 2234 | pub struct UseKw { |
@@ -2431,9 +2253,7 @@ impl AstToken for UseKw { | |||
2431 | None | 2253 | None |
2432 | } | 2254 | } |
2433 | } | 2255 | } |
2434 | fn syntax(&self) -> &SyntaxToken { | 2256 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2435 | &self.syntax | ||
2436 | } | ||
2437 | } | 2257 | } |
2438 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2258 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2439 | pub struct WhereKw { | 2259 | pub struct WhereKw { |
@@ -2458,9 +2278,7 @@ impl AstToken for WhereKw { | |||
2458 | None | 2278 | None |
2459 | } | 2279 | } |
2460 | } | 2280 | } |
2461 | fn syntax(&self) -> &SyntaxToken { | 2281 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2462 | &self.syntax | ||
2463 | } | ||
2464 | } | 2282 | } |
2465 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2283 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2466 | pub struct WhileKw { | 2284 | pub struct WhileKw { |
@@ -2485,9 +2303,7 @@ impl AstToken for WhileKw { | |||
2485 | None | 2303 | None |
2486 | } | 2304 | } |
2487 | } | 2305 | } |
2488 | fn syntax(&self) -> &SyntaxToken { | 2306 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2489 | &self.syntax | ||
2490 | } | ||
2491 | } | 2307 | } |
2492 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2308 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2493 | pub struct AutoKw { | 2309 | pub struct AutoKw { |
@@ -2512,9 +2328,7 @@ impl AstToken for AutoKw { | |||
2512 | None | 2328 | None |
2513 | } | 2329 | } |
2514 | } | 2330 | } |
2515 | fn syntax(&self) -> &SyntaxToken { | 2331 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2516 | &self.syntax | ||
2517 | } | ||
2518 | } | 2332 | } |
2519 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2333 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2520 | pub struct DefaultKw { | 2334 | pub struct DefaultKw { |
@@ -2539,9 +2353,7 @@ impl AstToken for DefaultKw { | |||
2539 | None | 2353 | None |
2540 | } | 2354 | } |
2541 | } | 2355 | } |
2542 | fn syntax(&self) -> &SyntaxToken { | 2356 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2543 | &self.syntax | ||
2544 | } | ||
2545 | } | 2357 | } |
2546 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2358 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2547 | pub struct ExistentialKw { | 2359 | pub struct ExistentialKw { |
@@ -2566,9 +2378,7 @@ impl AstToken for ExistentialKw { | |||
2566 | None | 2378 | None |
2567 | } | 2379 | } |
2568 | } | 2380 | } |
2569 | fn syntax(&self) -> &SyntaxToken { | 2381 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2570 | &self.syntax | ||
2571 | } | ||
2572 | } | 2382 | } |
2573 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2383 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2574 | pub struct UnionKw { | 2384 | pub struct UnionKw { |
@@ -2593,9 +2403,7 @@ impl AstToken for UnionKw { | |||
2593 | None | 2403 | None |
2594 | } | 2404 | } |
2595 | } | 2405 | } |
2596 | fn syntax(&self) -> &SyntaxToken { | 2406 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2597 | &self.syntax | ||
2598 | } | ||
2599 | } | 2407 | } |
2600 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2408 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2601 | pub struct RawKw { | 2409 | pub struct RawKw { |
@@ -2620,9 +2428,7 @@ impl AstToken for RawKw { | |||
2620 | None | 2428 | None |
2621 | } | 2429 | } |
2622 | } | 2430 | } |
2623 | fn syntax(&self) -> &SyntaxToken { | 2431 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2624 | &self.syntax | ||
2625 | } | ||
2626 | } | 2432 | } |
2627 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2433 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2628 | pub struct IntNumber { | 2434 | pub struct IntNumber { |
@@ -2647,9 +2453,7 @@ impl AstToken for IntNumber { | |||
2647 | None | 2453 | None |
2648 | } | 2454 | } |
2649 | } | 2455 | } |
2650 | fn syntax(&self) -> &SyntaxToken { | 2456 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2651 | &self.syntax | ||
2652 | } | ||
2653 | } | 2457 | } |
2654 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2458 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2655 | pub struct FloatNumber { | 2459 | pub struct FloatNumber { |
@@ -2674,9 +2478,7 @@ impl AstToken for FloatNumber { | |||
2674 | None | 2478 | None |
2675 | } | 2479 | } |
2676 | } | 2480 | } |
2677 | fn syntax(&self) -> &SyntaxToken { | 2481 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2678 | &self.syntax | ||
2679 | } | ||
2680 | } | 2482 | } |
2681 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2483 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2682 | pub struct Char { | 2484 | pub struct Char { |
@@ -2701,9 +2503,7 @@ impl AstToken for Char { | |||
2701 | None | 2503 | None |
2702 | } | 2504 | } |
2703 | } | 2505 | } |
2704 | fn syntax(&self) -> &SyntaxToken { | 2506 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2705 | &self.syntax | ||
2706 | } | ||
2707 | } | 2507 | } |
2708 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2508 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2709 | pub struct Byte { | 2509 | pub struct Byte { |
@@ -2728,9 +2528,7 @@ impl AstToken for Byte { | |||
2728 | None | 2528 | None |
2729 | } | 2529 | } |
2730 | } | 2530 | } |
2731 | fn syntax(&self) -> &SyntaxToken { | 2531 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2732 | &self.syntax | ||
2733 | } | ||
2734 | } | 2532 | } |
2735 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2533 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2736 | pub struct String { | 2534 | pub struct String { |
@@ -2755,9 +2553,7 @@ impl AstToken for String { | |||
2755 | None | 2553 | None |
2756 | } | 2554 | } |
2757 | } | 2555 | } |
2758 | fn syntax(&self) -> &SyntaxToken { | 2556 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2759 | &self.syntax | ||
2760 | } | ||
2761 | } | 2557 | } |
2762 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2558 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2763 | pub struct RawString { | 2559 | pub struct RawString { |
@@ -2782,9 +2578,7 @@ impl AstToken for RawString { | |||
2782 | None | 2578 | None |
2783 | } | 2579 | } |
2784 | } | 2580 | } |
2785 | fn syntax(&self) -> &SyntaxToken { | 2581 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2786 | &self.syntax | ||
2787 | } | ||
2788 | } | 2582 | } |
2789 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2583 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2790 | pub struct ByteString { | 2584 | pub struct ByteString { |
@@ -2809,9 +2603,7 @@ impl AstToken for ByteString { | |||
2809 | None | 2603 | None |
2810 | } | 2604 | } |
2811 | } | 2605 | } |
2812 | fn syntax(&self) -> &SyntaxToken { | 2606 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2813 | &self.syntax | ||
2814 | } | ||
2815 | } | 2607 | } |
2816 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2608 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2817 | pub struct RawByteString { | 2609 | pub struct RawByteString { |
@@ -2836,9 +2628,7 @@ impl AstToken for RawByteString { | |||
2836 | None | 2628 | None |
2837 | } | 2629 | } |
2838 | } | 2630 | } |
2839 | fn syntax(&self) -> &SyntaxToken { | 2631 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2840 | &self.syntax | ||
2841 | } | ||
2842 | } | 2632 | } |
2843 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2633 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2844 | pub struct Error { | 2634 | pub struct Error { |
@@ -2863,9 +2653,7 @@ impl AstToken for Error { | |||
2863 | None | 2653 | None |
2864 | } | 2654 | } |
2865 | } | 2655 | } |
2866 | fn syntax(&self) -> &SyntaxToken { | 2656 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2867 | &self.syntax | ||
2868 | } | ||
2869 | } | 2657 | } |
2870 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2658 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2871 | pub struct Ident { | 2659 | pub struct Ident { |
@@ -2890,9 +2678,7 @@ impl AstToken for Ident { | |||
2890 | None | 2678 | None |
2891 | } | 2679 | } |
2892 | } | 2680 | } |
2893 | fn syntax(&self) -> &SyntaxToken { | 2681 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2894 | &self.syntax | ||
2895 | } | ||
2896 | } | 2682 | } |
2897 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2683 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2898 | pub struct Whitespace { | 2684 | pub struct Whitespace { |
@@ -2917,9 +2703,7 @@ impl AstToken for Whitespace { | |||
2917 | None | 2703 | None |
2918 | } | 2704 | } |
2919 | } | 2705 | } |
2920 | fn syntax(&self) -> &SyntaxToken { | 2706 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2921 | &self.syntax | ||
2922 | } | ||
2923 | } | 2707 | } |
2924 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2708 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2925 | pub struct Lifetime { | 2709 | pub struct Lifetime { |
@@ -2944,9 +2728,7 @@ impl AstToken for Lifetime { | |||
2944 | None | 2728 | None |
2945 | } | 2729 | } |
2946 | } | 2730 | } |
2947 | fn syntax(&self) -> &SyntaxToken { | 2731 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2948 | &self.syntax | ||
2949 | } | ||
2950 | } | 2732 | } |
2951 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2733 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2952 | pub struct Comment { | 2734 | pub struct Comment { |
@@ -2971,9 +2753,7 @@ impl AstToken for Comment { | |||
2971 | None | 2753 | None |
2972 | } | 2754 | } |
2973 | } | 2755 | } |
2974 | fn syntax(&self) -> &SyntaxToken { | 2756 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
2975 | &self.syntax | ||
2976 | } | ||
2977 | } | 2757 | } |
2978 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2758 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2979 | pub struct Shebang { | 2759 | pub struct Shebang { |
@@ -2998,9 +2778,7 @@ impl AstToken for Shebang { | |||
2998 | None | 2778 | None |
2999 | } | 2779 | } |
3000 | } | 2780 | } |
3001 | fn syntax(&self) -> &SyntaxToken { | 2781 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
3002 | &self.syntax | ||
3003 | } | ||
3004 | } | 2782 | } |
3005 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2783 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
3006 | pub struct LDollar { | 2784 | pub struct LDollar { |
@@ -3025,9 +2803,7 @@ impl AstToken for LDollar { | |||
3025 | None | 2803 | None |
3026 | } | 2804 | } |
3027 | } | 2805 | } |
3028 | fn syntax(&self) -> &SyntaxToken { | 2806 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
3029 | &self.syntax | ||
3030 | } | ||
3031 | } | 2807 | } |
3032 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2808 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
3033 | pub struct RDollar { | 2809 | pub struct RDollar { |
@@ -3052,9 +2828,7 @@ impl AstToken for RDollar { | |||
3052 | None | 2828 | None |
3053 | } | 2829 | } |
3054 | } | 2830 | } |
3055 | fn syntax(&self) -> &SyntaxToken { | 2831 | fn syntax(&self) -> &SyntaxToken { &self.syntax } |
3056 | &self.syntax | ||
3057 | } | ||
3058 | } | 2832 | } |
3059 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2833 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
3060 | pub enum LeftDelimiter { | 2834 | pub enum LeftDelimiter { |
@@ -3063,19 +2837,13 @@ pub enum LeftDelimiter { | |||
3063 | LCurly(LCurly), | 2837 | LCurly(LCurly), |
3064 | } | 2838 | } |
3065 | impl From<LParen> for LeftDelimiter { | 2839 | impl From<LParen> for LeftDelimiter { |
3066 | fn from(node: LParen) -> LeftDelimiter { | 2840 | fn from(node: LParen) -> LeftDelimiter { LeftDelimiter::LParen(node) } |
3067 | LeftDelimiter::LParen(node) | ||
3068 | } | ||
3069 | } | 2841 | } |
3070 | impl From<LBrack> for LeftDelimiter { | 2842 | impl From<LBrack> for LeftDelimiter { |
3071 | fn from(node: LBrack) -> LeftDelimiter { | 2843 | fn from(node: LBrack) -> LeftDelimiter { LeftDelimiter::LBrack(node) } |
3072 | LeftDelimiter::LBrack(node) | ||
3073 | } | ||
3074 | } | 2844 | } |
3075 | impl From<LCurly> for LeftDelimiter { | 2845 | impl From<LCurly> for LeftDelimiter { |
3076 | fn from(node: LCurly) -> LeftDelimiter { | 2846 | fn from(node: LCurly) -> LeftDelimiter { LeftDelimiter::LCurly(node) } |
3077 | LeftDelimiter::LCurly(node) | ||
3078 | } | ||
3079 | } | 2847 | } |
3080 | impl std::fmt::Display for LeftDelimiter { | 2848 | impl std::fmt::Display for LeftDelimiter { |
3081 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 2849 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3113,19 +2881,13 @@ pub enum RightDelimiter { | |||
3113 | RCurly(RCurly), | 2881 | RCurly(RCurly), |
3114 | } | 2882 | } |
3115 | impl From<RParen> for RightDelimiter { | 2883 | impl From<RParen> for RightDelimiter { |
3116 | fn from(node: RParen) -> RightDelimiter { | 2884 | fn from(node: RParen) -> RightDelimiter { RightDelimiter::RParen(node) } |
3117 | RightDelimiter::RParen(node) | ||
3118 | } | ||
3119 | } | 2885 | } |
3120 | impl From<RBrack> for RightDelimiter { | 2886 | impl From<RBrack> for RightDelimiter { |
3121 | fn from(node: RBrack) -> RightDelimiter { | 2887 | fn from(node: RBrack) -> RightDelimiter { RightDelimiter::RBrack(node) } |
3122 | RightDelimiter::RBrack(node) | ||
3123 | } | ||
3124 | } | 2888 | } |
3125 | impl From<RCurly> for RightDelimiter { | 2889 | impl From<RCurly> for RightDelimiter { |
3126 | fn from(node: RCurly) -> RightDelimiter { | 2890 | fn from(node: RCurly) -> RightDelimiter { RightDelimiter::RCurly(node) } |
3127 | RightDelimiter::RCurly(node) | ||
3128 | } | ||
3129 | } | 2891 | } |
3130 | impl std::fmt::Display for RightDelimiter { | 2892 | impl std::fmt::Display for RightDelimiter { |
3131 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 2893 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3163,19 +2925,13 @@ pub enum RangeSeparator { | |||
3163 | Dotdoteq(Dotdoteq), | 2925 | Dotdoteq(Dotdoteq), |
3164 | } | 2926 | } |
3165 | impl From<Dotdot> for RangeSeparator { | 2927 | impl From<Dotdot> for RangeSeparator { |
3166 | fn from(node: Dotdot) -> RangeSeparator { | 2928 | fn from(node: Dotdot) -> RangeSeparator { RangeSeparator::Dotdot(node) } |
3167 | RangeSeparator::Dotdot(node) | ||
3168 | } | ||
3169 | } | 2929 | } |
3170 | impl From<Dotdotdot> for RangeSeparator { | 2930 | impl From<Dotdotdot> for RangeSeparator { |
3171 | fn from(node: Dotdotdot) -> RangeSeparator { | 2931 | fn from(node: Dotdotdot) -> RangeSeparator { RangeSeparator::Dotdotdot(node) } |
3172 | RangeSeparator::Dotdotdot(node) | ||
3173 | } | ||
3174 | } | 2932 | } |
3175 | impl From<Dotdoteq> for RangeSeparator { | 2933 | impl From<Dotdoteq> for RangeSeparator { |
3176 | fn from(node: Dotdoteq) -> RangeSeparator { | 2934 | fn from(node: Dotdoteq) -> RangeSeparator { RangeSeparator::Dotdoteq(node) } |
3177 | RangeSeparator::Dotdoteq(node) | ||
3178 | } | ||
3179 | } | 2935 | } |
3180 | impl std::fmt::Display for RangeSeparator { | 2936 | impl std::fmt::Display for RangeSeparator { |
3181 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 2937 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3239,149 +2995,91 @@ pub enum BinOp { | |||
3239 | Careteq(Careteq), | 2995 | Careteq(Careteq), |
3240 | } | 2996 | } |
3241 | impl From<Pipepipe> for BinOp { | 2997 | impl From<Pipepipe> for BinOp { |
3242 | fn from(node: Pipepipe) -> BinOp { | 2998 | fn from(node: Pipepipe) -> BinOp { BinOp::Pipepipe(node) } |
3243 | BinOp::Pipepipe(node) | ||
3244 | } | ||
3245 | } | 2999 | } |
3246 | impl From<Ampamp> for BinOp { | 3000 | impl From<Ampamp> for BinOp { |
3247 | fn from(node: Ampamp) -> BinOp { | 3001 | fn from(node: Ampamp) -> BinOp { BinOp::Ampamp(node) } |
3248 | BinOp::Ampamp(node) | ||
3249 | } | ||
3250 | } | 3002 | } |
3251 | impl From<Eqeq> for BinOp { | 3003 | impl From<Eqeq> for BinOp { |
3252 | fn from(node: Eqeq) -> BinOp { | 3004 | fn from(node: Eqeq) -> BinOp { BinOp::Eqeq(node) } |
3253 | BinOp::Eqeq(node) | ||
3254 | } | ||
3255 | } | 3005 | } |
3256 | impl From<Neq> for BinOp { | 3006 | impl From<Neq> for BinOp { |
3257 | fn from(node: Neq) -> BinOp { | 3007 | fn from(node: Neq) -> BinOp { BinOp::Neq(node) } |
3258 | BinOp::Neq(node) | ||
3259 | } | ||
3260 | } | 3008 | } |
3261 | impl From<Lteq> for BinOp { | 3009 | impl From<Lteq> for BinOp { |
3262 | fn from(node: Lteq) -> BinOp { | 3010 | fn from(node: Lteq) -> BinOp { BinOp::Lteq(node) } |
3263 | BinOp::Lteq(node) | ||
3264 | } | ||
3265 | } | 3011 | } |
3266 | impl From<Gteq> for BinOp { | 3012 | impl From<Gteq> for BinOp { |
3267 | fn from(node: Gteq) -> BinOp { | 3013 | fn from(node: Gteq) -> BinOp { BinOp::Gteq(node) } |
3268 | BinOp::Gteq(node) | ||
3269 | } | ||
3270 | } | 3014 | } |
3271 | impl From<LAngle> for BinOp { | 3015 | impl From<LAngle> for BinOp { |
3272 | fn from(node: LAngle) -> BinOp { | 3016 | fn from(node: LAngle) -> BinOp { BinOp::LAngle(node) } |
3273 | BinOp::LAngle(node) | ||
3274 | } | ||
3275 | } | 3017 | } |
3276 | impl From<RAngle> for BinOp { | 3018 | impl From<RAngle> for BinOp { |
3277 | fn from(node: RAngle) -> BinOp { | 3019 | fn from(node: RAngle) -> BinOp { BinOp::RAngle(node) } |
3278 | BinOp::RAngle(node) | ||
3279 | } | ||
3280 | } | 3020 | } |
3281 | impl From<Plus> for BinOp { | 3021 | impl From<Plus> for BinOp { |
3282 | fn from(node: Plus) -> BinOp { | 3022 | fn from(node: Plus) -> BinOp { BinOp::Plus(node) } |
3283 | BinOp::Plus(node) | ||
3284 | } | ||
3285 | } | 3023 | } |
3286 | impl From<Star> for BinOp { | 3024 | impl From<Star> for BinOp { |
3287 | fn from(node: Star) -> BinOp { | 3025 | fn from(node: Star) -> BinOp { BinOp::Star(node) } |
3288 | BinOp::Star(node) | ||
3289 | } | ||
3290 | } | 3026 | } |
3291 | impl From<Minus> for BinOp { | 3027 | impl From<Minus> for BinOp { |
3292 | fn from(node: Minus) -> BinOp { | 3028 | fn from(node: Minus) -> BinOp { BinOp::Minus(node) } |
3293 | BinOp::Minus(node) | ||
3294 | } | ||
3295 | } | 3029 | } |
3296 | impl From<Slash> for BinOp { | 3030 | impl From<Slash> for BinOp { |
3297 | fn from(node: Slash) -> BinOp { | 3031 | fn from(node: Slash) -> BinOp { BinOp::Slash(node) } |
3298 | BinOp::Slash(node) | ||
3299 | } | ||
3300 | } | 3032 | } |
3301 | impl From<Percent> for BinOp { | 3033 | impl From<Percent> for BinOp { |
3302 | fn from(node: Percent) -> BinOp { | 3034 | fn from(node: Percent) -> BinOp { BinOp::Percent(node) } |
3303 | BinOp::Percent(node) | ||
3304 | } | ||
3305 | } | 3035 | } |
3306 | impl From<Shl> for BinOp { | 3036 | impl From<Shl> for BinOp { |
3307 | fn from(node: Shl) -> BinOp { | 3037 | fn from(node: Shl) -> BinOp { BinOp::Shl(node) } |
3308 | BinOp::Shl(node) | ||
3309 | } | ||
3310 | } | 3038 | } |
3311 | impl From<Shr> for BinOp { | 3039 | impl From<Shr> for BinOp { |
3312 | fn from(node: Shr) -> BinOp { | 3040 | fn from(node: Shr) -> BinOp { BinOp::Shr(node) } |
3313 | BinOp::Shr(node) | ||
3314 | } | ||
3315 | } | 3041 | } |
3316 | impl From<Caret> for BinOp { | 3042 | impl From<Caret> for BinOp { |
3317 | fn from(node: Caret) -> BinOp { | 3043 | fn from(node: Caret) -> BinOp { BinOp::Caret(node) } |
3318 | BinOp::Caret(node) | ||
3319 | } | ||
3320 | } | 3044 | } |
3321 | impl From<Pipe> for BinOp { | 3045 | impl From<Pipe> for BinOp { |
3322 | fn from(node: Pipe) -> BinOp { | 3046 | fn from(node: Pipe) -> BinOp { BinOp::Pipe(node) } |
3323 | BinOp::Pipe(node) | ||
3324 | } | ||
3325 | } | 3047 | } |
3326 | impl From<Amp> for BinOp { | 3048 | impl From<Amp> for BinOp { |
3327 | fn from(node: Amp) -> BinOp { | 3049 | fn from(node: Amp) -> BinOp { BinOp::Amp(node) } |
3328 | BinOp::Amp(node) | ||
3329 | } | ||
3330 | } | 3050 | } |
3331 | impl From<Eq> for BinOp { | 3051 | impl From<Eq> for BinOp { |
3332 | fn from(node: Eq) -> BinOp { | 3052 | fn from(node: Eq) -> BinOp { BinOp::Eq(node) } |
3333 | BinOp::Eq(node) | ||
3334 | } | ||
3335 | } | 3053 | } |
3336 | impl From<Pluseq> for BinOp { | 3054 | impl From<Pluseq> for BinOp { |
3337 | fn from(node: Pluseq) -> BinOp { | 3055 | fn from(node: Pluseq) -> BinOp { BinOp::Pluseq(node) } |
3338 | BinOp::Pluseq(node) | ||
3339 | } | ||
3340 | } | 3056 | } |
3341 | impl From<Slasheq> for BinOp { | 3057 | impl From<Slasheq> for BinOp { |
3342 | fn from(node: Slasheq) -> BinOp { | 3058 | fn from(node: Slasheq) -> BinOp { BinOp::Slasheq(node) } |
3343 | BinOp::Slasheq(node) | ||
3344 | } | ||
3345 | } | 3059 | } |
3346 | impl From<Stareq> for BinOp { | 3060 | impl From<Stareq> for BinOp { |
3347 | fn from(node: Stareq) -> BinOp { | 3061 | fn from(node: Stareq) -> BinOp { BinOp::Stareq(node) } |
3348 | BinOp::Stareq(node) | ||
3349 | } | ||
3350 | } | 3062 | } |
3351 | impl From<Percenteq> for BinOp { | 3063 | impl From<Percenteq> for BinOp { |
3352 | fn from(node: Percenteq) -> BinOp { | 3064 | fn from(node: Percenteq) -> BinOp { BinOp::Percenteq(node) } |
3353 | BinOp::Percenteq(node) | ||
3354 | } | ||
3355 | } | 3065 | } |
3356 | impl From<Shreq> for BinOp { | 3066 | impl From<Shreq> for BinOp { |
3357 | fn from(node: Shreq) -> BinOp { | 3067 | fn from(node: Shreq) -> BinOp { BinOp::Shreq(node) } |
3358 | BinOp::Shreq(node) | ||
3359 | } | ||
3360 | } | 3068 | } |
3361 | impl From<Shleq> for BinOp { | 3069 | impl From<Shleq> for BinOp { |
3362 | fn from(node: Shleq) -> BinOp { | 3070 | fn from(node: Shleq) -> BinOp { BinOp::Shleq(node) } |
3363 | BinOp::Shleq(node) | ||
3364 | } | ||
3365 | } | 3071 | } |
3366 | impl From<Minuseq> for BinOp { | 3072 | impl From<Minuseq> for BinOp { |
3367 | fn from(node: Minuseq) -> BinOp { | 3073 | fn from(node: Minuseq) -> BinOp { BinOp::Minuseq(node) } |
3368 | BinOp::Minuseq(node) | ||
3369 | } | ||
3370 | } | 3074 | } |
3371 | impl From<Pipeeq> for BinOp { | 3075 | impl From<Pipeeq> for BinOp { |
3372 | fn from(node: Pipeeq) -> BinOp { | 3076 | fn from(node: Pipeeq) -> BinOp { BinOp::Pipeeq(node) } |
3373 | BinOp::Pipeeq(node) | ||
3374 | } | ||
3375 | } | 3077 | } |
3376 | impl From<Ampeq> for BinOp { | 3078 | impl From<Ampeq> for BinOp { |
3377 | fn from(node: Ampeq) -> BinOp { | 3079 | fn from(node: Ampeq) -> BinOp { BinOp::Ampeq(node) } |
3378 | BinOp::Ampeq(node) | ||
3379 | } | ||
3380 | } | 3080 | } |
3381 | impl From<Careteq> for BinOp { | 3081 | impl From<Careteq> for BinOp { |
3382 | fn from(node: Careteq) -> BinOp { | 3082 | fn from(node: Careteq) -> BinOp { BinOp::Careteq(node) } |
3383 | BinOp::Careteq(node) | ||
3384 | } | ||
3385 | } | 3083 | } |
3386 | impl std::fmt::Display for BinOp { | 3084 | impl std::fmt::Display for BinOp { |
3387 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 3085 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3473,19 +3171,13 @@ pub enum PrefixOp { | |||
3473 | Star(Star), | 3171 | Star(Star), |
3474 | } | 3172 | } |
3475 | impl From<Minus> for PrefixOp { | 3173 | impl From<Minus> for PrefixOp { |
3476 | fn from(node: Minus) -> PrefixOp { | 3174 | fn from(node: Minus) -> PrefixOp { PrefixOp::Minus(node) } |
3477 | PrefixOp::Minus(node) | ||
3478 | } | ||
3479 | } | 3175 | } |
3480 | impl From<Excl> for PrefixOp { | 3176 | impl From<Excl> for PrefixOp { |
3481 | fn from(node: Excl) -> PrefixOp { | 3177 | fn from(node: Excl) -> PrefixOp { PrefixOp::Excl(node) } |
3482 | PrefixOp::Excl(node) | ||
3483 | } | ||
3484 | } | 3178 | } |
3485 | impl From<Star> for PrefixOp { | 3179 | impl From<Star> for PrefixOp { |
3486 | fn from(node: Star) -> PrefixOp { | 3180 | fn from(node: Star) -> PrefixOp { PrefixOp::Star(node) } |
3487 | PrefixOp::Star(node) | ||
3488 | } | ||
3489 | } | 3181 | } |
3490 | impl std::fmt::Display for PrefixOp { | 3182 | impl std::fmt::Display for PrefixOp { |
3491 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 3183 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3522,14 +3214,10 @@ pub enum RangeOp { | |||
3522 | Dotdoteq(Dotdoteq), | 3214 | Dotdoteq(Dotdoteq), |
3523 | } | 3215 | } |
3524 | impl From<Dotdot> for RangeOp { | 3216 | impl From<Dotdot> for RangeOp { |
3525 | fn from(node: Dotdot) -> RangeOp { | 3217 | fn from(node: Dotdot) -> RangeOp { RangeOp::Dotdot(node) } |
3526 | RangeOp::Dotdot(node) | ||
3527 | } | ||
3528 | } | 3218 | } |
3529 | impl From<Dotdoteq> for RangeOp { | 3219 | impl From<Dotdoteq> for RangeOp { |
3530 | fn from(node: Dotdoteq) -> RangeOp { | 3220 | fn from(node: Dotdoteq) -> RangeOp { RangeOp::Dotdoteq(node) } |
3531 | RangeOp::Dotdoteq(node) | ||
3532 | } | ||
3533 | } | 3221 | } |
3534 | impl std::fmt::Display for RangeOp { | 3222 | impl std::fmt::Display for RangeOp { |
3535 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 3223 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3572,54 +3260,34 @@ pub enum LiteralToken { | |||
3572 | Byte(Byte), | 3260 | Byte(Byte), |
3573 | } | 3261 | } |
3574 | impl From<IntNumber> for LiteralToken { | 3262 | impl From<IntNumber> for LiteralToken { |
3575 | fn from(node: IntNumber) -> LiteralToken { | 3263 | fn from(node: IntNumber) -> LiteralToken { LiteralToken::IntNumber(node) } |
3576 | LiteralToken::IntNumber(node) | ||
3577 | } | ||
3578 | } | 3264 | } |
3579 | impl From<FloatNumber> for LiteralToken { | 3265 | impl From<FloatNumber> for LiteralToken { |
3580 | fn from(node: FloatNumber) -> LiteralToken { | 3266 | fn from(node: FloatNumber) -> LiteralToken { LiteralToken::FloatNumber(node) } |
3581 | LiteralToken::FloatNumber(node) | ||
3582 | } | ||
3583 | } | 3267 | } |
3584 | impl From<String> for LiteralToken { | 3268 | impl From<String> for LiteralToken { |
3585 | fn from(node: String) -> LiteralToken { | 3269 | fn from(node: String) -> LiteralToken { LiteralToken::String(node) } |
3586 | LiteralToken::String(node) | ||
3587 | } | ||
3588 | } | 3270 | } |
3589 | impl From<RawString> for LiteralToken { | 3271 | impl From<RawString> for LiteralToken { |
3590 | fn from(node: RawString) -> LiteralToken { | 3272 | fn from(node: RawString) -> LiteralToken { LiteralToken::RawString(node) } |
3591 | LiteralToken::RawString(node) | ||
3592 | } | ||
3593 | } | 3273 | } |
3594 | impl From<TrueKw> for LiteralToken { | 3274 | impl From<TrueKw> for LiteralToken { |
3595 | fn from(node: TrueKw) -> LiteralToken { | 3275 | fn from(node: TrueKw) -> LiteralToken { LiteralToken::TrueKw(node) } |
3596 | LiteralToken::TrueKw(node) | ||
3597 | } | ||
3598 | } | 3276 | } |
3599 | impl From<FalseKw> for LiteralToken { | 3277 | impl From<FalseKw> for LiteralToken { |
3600 | fn from(node: FalseKw) -> LiteralToken { | 3278 | fn from(node: FalseKw) -> LiteralToken { LiteralToken::FalseKw(node) } |
3601 | LiteralToken::FalseKw(node) | ||
3602 | } | ||
3603 | } | 3279 | } |
3604 | impl From<ByteString> for LiteralToken { | 3280 | impl From<ByteString> for LiteralToken { |
3605 | fn from(node: ByteString) -> LiteralToken { | 3281 | fn from(node: ByteString) -> LiteralToken { LiteralToken::ByteString(node) } |
3606 | LiteralToken::ByteString(node) | ||
3607 | } | ||
3608 | } | 3282 | } |
3609 | impl From<RawByteString> for LiteralToken { | 3283 | impl From<RawByteString> for LiteralToken { |
3610 | fn from(node: RawByteString) -> LiteralToken { | 3284 | fn from(node: RawByteString) -> LiteralToken { LiteralToken::RawByteString(node) } |
3611 | LiteralToken::RawByteString(node) | ||
3612 | } | ||
3613 | } | 3285 | } |
3614 | impl From<Char> for LiteralToken { | 3286 | impl From<Char> for LiteralToken { |
3615 | fn from(node: Char) -> LiteralToken { | 3287 | fn from(node: Char) -> LiteralToken { LiteralToken::Char(node) } |
3616 | LiteralToken::Char(node) | ||
3617 | } | ||
3618 | } | 3288 | } |
3619 | impl From<Byte> for LiteralToken { | 3289 | impl From<Byte> for LiteralToken { |
3620 | fn from(node: Byte) -> LiteralToken { | 3290 | fn from(node: Byte) -> LiteralToken { LiteralToken::Byte(node) } |
3621 | LiteralToken::Byte(node) | ||
3622 | } | ||
3623 | } | 3291 | } |
3624 | impl std::fmt::Display for LiteralToken { | 3292 | impl std::fmt::Display for LiteralToken { |
3625 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 3293 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
@@ -3671,14 +3339,10 @@ pub enum NameRefToken { | |||
3671 | IntNumber(IntNumber), | 3339 | IntNumber(IntNumber), |
3672 | } | 3340 | } |
3673 | impl From<Ident> for NameRefToken { | 3341 | impl From<Ident> for NameRefToken { |
3674 | fn from(node: Ident) -> NameRefToken { | 3342 | fn from(node: Ident) -> NameRefToken { NameRefToken::Ident(node) } |
3675 | NameRefToken::Ident(node) | ||
3676 | } | ||
3677 | } | 3343 | } |
3678 | impl From<IntNumber> for NameRefToken { | 3344 | impl From<IntNumber> for NameRefToken { |
3679 | fn from(node: IntNumber) -> NameRefToken { | 3345 | fn from(node: IntNumber) -> NameRefToken { NameRefToken::IntNumber(node) } |
3680 | NameRefToken::IntNumber(node) | ||
3681 | } | ||
3682 | } | 3346 | } |
3683 | impl std::fmt::Display for NameRefToken { | 3347 | impl std::fmt::Display for NameRefToken { |
3684 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 3348 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |