Commit dff1339
committed
fix: Fix param inlayHints on empty expr and comma
Example
---
```rust
pub fn test(a: i32, b: i32, c: i32) {}
fn main() {
test(, 2,);
test(, , 3);
}
```
**Before this PR**
```rust
test(, 2,);
//^ a
test(, , 3);
//^ a
```
**After this PR**
```rust
test(, 2,);
//^ b
test(, , 3);
//^ c
```1 parent f53d93e commit dff1339
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
561 | 562 | | |
562 | 563 | | |
563 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
564 | 578 | | |
565 | 579 | | |
566 | 580 | | |
| |||
0 commit comments