Aleksey Kladov
|
2b6f1ab0e2
|
Collapse TokenMap and RevTokenMap
|
2019-11-18 16:08:41 +03:00 |
|
Aleksey Kladov
|
b79d678923
|
Token-based reverse-mapping
|
2019-11-18 15:08:39 +03:00 |
|
Aleksey Kladov
|
fd52d721e1
|
More correct expansion mapping
We can't really map arbitrary ranges, we only can map tokens
|
2019-11-17 20:15:55 +03:00 |
|
Aleksey Kladov
|
c8f858d043
|
Make shift an implementation detail of mbe
|
2019-11-17 19:11:43 +03:00 |
|
Aleksey Kladov
|
7e2f4b30db
|
Disable doctests
|
2019-11-17 18:35:05 +03:00 |
|
Aleksey Kladov
|
2eaa8c94a8
|
Goto definition works inside macros
|
2019-11-16 17:00:54 +03:00 |
|
memoryruins
|
5476c4faa3
|
Update smallvec dep to 1.0
|
2019-11-15 07:18:10 -05:00 |
|
Aleksey Kladov
|
70f2a21b55
|
Remove typed macro parsing API
We do type-erasure on every path anyway, so it doesn't make much sense
to duplicate this function for every type
|
2019-11-09 13:14:10 +03:00 |
|
Edwin Cheng
|
0a5ec69404
|
Remove map_ranges in RevTokenMap
|
2019-11-09 12:00:46 +08:00 |
|
Edwin Cheng
|
d01e0abdb5
|
Refactor and simpfily
|
2019-11-09 04:26:28 +08:00 |
|
Edwin Cheng
|
62ed93db13
|
Refactor and add more comments
|
2019-11-08 10:19:41 +08:00 |
|
Edwin Cheng
|
568f3cff41
|
Fix formatting
|
2019-11-05 09:43:59 +08:00 |
|
Edwin Cheng
|
2a76bb5a0b
|
Refactor a bit
|
2019-11-05 03:20:54 +08:00 |
|
Edwin Cheng
|
604bdc6ffe
|
Use macro_rules shift to map text ranges
|
2019-11-05 02:09:16 +08:00 |
|
Edwin Cheng
|
e6709f64af
|
Rename and fix typos
|
2019-11-05 01:38:20 +08:00 |
|
Edwin Cheng
|
67226ebc82
|
Remove dbg!
|
2019-11-05 01:38:20 +08:00 |
|
Edwin Cheng
|
d560219d06
|
Fixed bug in ExpandedRangeMap
|
2019-11-05 01:38:20 +08:00 |
|
Edwin Cheng
|
159da285e9
|
Add macro_expansion_info in hir_expand
|
2019-11-05 01:38:20 +08:00 |
|
Edwin Cheng
|
9fd546bec2
|
Add map_id to TokenId
|
2019-11-05 01:38:20 +08:00 |
|
Edwin Cheng
|
a5839662f4
|
Change to add 1 if non zero shift
|
2019-11-05 01:16:06 +08:00 |
|
Edwin Cheng
|
188a1412b9
|
Refactor and rename
|
2019-11-05 01:01:05 +08:00 |
|
Edwin Cheng
|
42661a3b27
|
Change Option<u32> to u32 for shift value
|
2019-11-05 00:33:19 +08:00 |
|
Edwin Cheng
|
63e42bb5bd
|
Change to better naming
|
2019-11-05 00:16:03 +08:00 |
|
Edwin Cheng
|
04af290d4e
|
Add TokenId Shif in macro_rules
|
2019-11-04 23:22:18 +08:00 |
|
kjeremy
|
b441b4e8ef
|
Some clippy fixes
|
2019-10-30 13:36:37 -04:00 |
|
Shotaro Yamada
|
5ca6281164
|
Remove unused dependencies
|
2019-10-12 08:00:54 +09:00 |
|
Alexander Andreev
|
fdbd6bb11a
|
Added test for check doc strings in crates.
#1856
|
2019-09-30 11:58:53 +03:00 |
|
uHOOCCOOHu
|
2ecb126f5c
|
Support $crate in item and expr place.
|
2019-09-27 02:05:06 +08:00 |
|
Aleksey Kladov
|
66101e931c
|
simplify
|
2019-09-24 09:28:16 +03:00 |
|
Aleksey Kladov
|
43da23401d
|
remove obsolete TOOD
I have no idea what I've meant to fix here :-(
|
2019-09-22 23:43:37 +03:00 |
|
Aleksey Kladov
|
76290afa9a
|
minor cleanup
|
2019-09-22 23:39:29 +03:00 |
|
Aleksey Kladov
|
b31b7ab238
|
slightly cleanup macro tests
|
2019-09-19 13:44:51 +03:00 |
|
Aleksey Kladov
|
4551182f94
|
use usual token tree for macro expansion
|
2019-09-17 15:51:48 +03:00 |
|
Aleksey Kladov
|
37ef8927c3
|
split mbe expander code into two modules
|
2019-09-17 02:06:14 +03:00 |
|
Aleksey Kladov
|
9eb14e1170
|
cleanup expansion to item list
|
2019-09-10 22:22:57 +03:00 |
|
Aleksey Kladov
|
4fdaec99c0
|
simiplify
|
2019-09-10 20:28:50 +03:00 |
|
Aleksey Kladov
|
6e5198cd6d
|
add fragmets to expansion
|
2019-09-10 20:26:41 +03:00 |
|
Aleksey Kladov
|
1c5800dee8
|
"Fix" mbe to work with decomposed tokens
We regressed $i * 2 where $i = 1 + 1, need to fix that!
|
2019-09-10 15:56:05 +03:00 |
|
Aleksey Kladov
|
e94587e315
|
fix assists
|
2019-09-02 21:52:06 +03:00 |
|
Aleksey Kladov
|
e2b3844493
|
remove needless clone
|
2019-09-02 19:21:28 +03:00 |
|
Aleksey Kladov
|
c89abd4262
|
simplify
|
2019-09-02 18:58:21 +03:00 |
|
Aleksey Kladov
|
5b18a4eef9
|
rename struct -> record, pos -> tuple
|
2019-08-23 16:59:50 +03:00 |
|
Laurențiu Nicola
|
f52437371f
|
Return a Ref from SubtreeTokenSource::get
|
2019-08-03 22:49:47 +03:00 |
|
Laurențiu Nicola
|
e58baaa5a1
|
Avoid cloning a TtToken in SubtreeTokenSource::mk_token
|
2019-08-03 21:21:09 +03:00 |
|
Aleksey Kladov
|
c9cfd57eea
|
switch to upstream rowan's API
|
2019-07-20 20:12:06 +03:00 |
|
Aleksey Kladov
|
f3bdbec1b6
|
rename range -> text_range
|
2019-07-20 12:58:27 +03:00 |
|
Aleksey Kladov
|
6d5d82e412
|
move debug_dump to fmt::Debug
|
2019-07-20 12:48:24 +03:00 |
|
Aleksey Kladov
|
08fd402ef2
|
migrate mbe to the new rowan
|
2019-07-19 13:16:24 +03:00 |
|
Aleksey Kladov
|
df33e7685b
|
use Parse in mbe
|
2019-07-18 23:19:04 +03:00 |
|
Aleksey Kladov
|
deab4caa7b
|
make Parse fields private
this is in preparation for the new rowan API
|
2019-07-12 19:41:13 +03:00 |
|