-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix definition lookups for
let a =
-style bindings
commit-id:02fe336d
- Loading branch information
Showing
3 changed files
with
120 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
//! > Hover for variables | ||
|
||
//! > test_runner_name | ||
test_hover | ||
|
||
//! > cairo_project.toml | ||
[crate_roots] | ||
hello = "src" | ||
|
||
[config.global] | ||
edition = "2023_11" | ||
|
||
//! > cairo_code | ||
fn main() { | ||
let ab<caret>c: felt252 = 0; | ||
let mut de<caret>f = ab<caret>c * 2; | ||
let _ = de<caret>f * 2; | ||
} | ||
|
||
//! > hover #0 | ||
// = source context | ||
let ab<caret>c: felt252 = 0; | ||
// = highlight | ||
No highlight information. | ||
// = popover | ||
Type: `core::felt252` | ||
|
||
//! > hover #1 | ||
// = source context | ||
let mut de<caret>f = abc * 2; | ||
// = highlight | ||
No highlight information. | ||
// = popover | ||
Type: `core::felt252` | ||
|
||
//! > hover #2 | ||
// = source context | ||
let mut def = ab<caret>c * 2; | ||
// = highlight | ||
let mut def = <sel>abc</sel> * 2; | ||
// = popover | ||
```cairo | ||
let abc: core::felt252 | ||
``` | ||
|
||
//! > hover #3 | ||
// = source context | ||
let _ = de<caret>f * 2; | ||
// = highlight | ||
let _ = <sel>def</sel> * 2; | ||
// = popover | ||
```cairo | ||
let mut def: core::felt252 | ||
``` |