-
-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e6c08f
commit ac06122
Showing
13 changed files
with
297 additions
and
6 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
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
35 changes: 35 additions & 0 deletions
35
...shots/gleam_core__language_server__tests__rename__rename_custom_type_variant_pattern.snap
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,35 @@ | ||
--- | ||
source: compiler-core/src/language_server/tests/rename.rs | ||
expression: "\npub type Type {\n X\n Y\n}\n\npub fn main(t) {\n case t {\n X -> 0\n Y -> 0\n }\n}\n" | ||
--- | ||
----- BEFORE RENAME | ||
-- app.gleam | ||
|
||
pub type Type { | ||
X | ||
↑ | ||
Y | ||
} | ||
|
||
pub fn main(t) { | ||
case t { | ||
X -> 0 | ||
Y -> 0 | ||
} | ||
} | ||
|
||
|
||
----- AFTER RENAME | ||
-- app.gleam | ||
|
||
pub type Type { | ||
Renamed | ||
Y | ||
} | ||
|
||
pub fn main(t) { | ||
case t { | ||
Renamed -> 0 | ||
Y -> 0 | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...am_core__language_server__tests__rename__rename_imported_custom_type_variant_pattern.snap
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,45 @@ | ||
--- | ||
source: compiler-core/src/language_server/tests/rename.rs | ||
expression: "\npub type Type {\n X\n Y\n}\n" | ||
--- | ||
----- BEFORE RENAME | ||
-- other.gleam | ||
|
||
import app | ||
|
||
pub fn main(t) { | ||
case t { | ||
app.X -> 0 | ||
app.Y -> 0 | ||
} | ||
} | ||
|
||
|
||
-- app.gleam | ||
|
||
pub type Type { | ||
X | ||
↑ | ||
Y | ||
} | ||
|
||
|
||
----- AFTER RENAME | ||
-- other.gleam | ||
|
||
import app | ||
|
||
pub fn main(t) { | ||
case t { | ||
app.Renamed -> 0 | ||
app.Y -> 0 | ||
} | ||
} | ||
|
||
|
||
-- app.gleam | ||
|
||
pub type Type { | ||
Renamed | ||
Y | ||
} |
45 changes: 45 additions & 0 deletions
45
...guage_server__tests__rename__rename_imported_unqualified_custom_type_variant_pattern.snap
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,45 @@ | ||
--- | ||
source: compiler-core/src/language_server/tests/rename.rs | ||
expression: "\npub type Type {\n X\n Y\n}\n" | ||
--- | ||
----- BEFORE RENAME | ||
-- other.gleam | ||
|
||
import app.{X, Y} | ||
|
||
pub fn main(t) { | ||
case t { | ||
X -> 0 | ||
Y -> 0 | ||
} | ||
} | ||
|
||
|
||
-- app.gleam | ||
|
||
pub type Type { | ||
X | ||
↑ | ||
Y | ||
} | ||
|
||
|
||
----- AFTER RENAME | ||
-- other.gleam | ||
|
||
import app.{Renamed, Y} | ||
|
||
pub fn main(t) { | ||
case t { | ||
Renamed -> 0 | ||
Y -> 0 | ||
} | ||
} | ||
|
||
|
||
-- app.gleam | ||
|
||
pub type Type { | ||
Renamed | ||
Y | ||
} |
Oops, something went wrong.