-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added branch scope for try catch statements in java * Added missing iteration scope for if else branch in java ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-ca/e-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
- Loading branch information
1 parent
b8a2f42
commit d0a2b2a
Showing
8 changed files
with
123 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if (true) {} | ||
else if (false) {} | ||
else {} | ||
--- | ||
|
||
[Range] = | ||
[Domain] = 0:0-2:7 | ||
>------------ | ||
0| if (true) {} | ||
1| else if (false) {} | ||
2| else {} | ||
-------< |
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 @@ | ||
if (true) {} | ||
else if (false) {} | ||
else {} | ||
--- | ||
|
||
[#1 Content] = | ||
[#1 Domain] = 0:0-0:12 | ||
>------------< | ||
0| if (true) {} | ||
|
||
[#1 Removal] = 0:0-1:5 | ||
>------------ | ||
0| if (true) {} | ||
1| else if (false) {} | ||
-----< | ||
|
||
[#1 Insertion delimiter] = "\n" | ||
|
||
|
||
[#2 Content] = | ||
[#2 Removal] = | ||
[#2 Domain] = 1:0-1:18 | ||
>------------------< | ||
1| else if (false) {} | ||
|
||
[#2 Insertion delimiter] = "\n" | ||
|
||
|
||
[#3 Content] = | ||
[#3 Removal] = | ||
[#3 Domain] = 2:0-2:7 | ||
>-------< | ||
2| else {} | ||
|
||
[#3 Insertion delimiter] = "\n" |
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,12 @@ | ||
try {} | ||
catch(Exception e) {} | ||
finally {} | ||
--- | ||
|
||
[Range] = | ||
[Domain] = 0:0-2:10 | ||
>------ | ||
0| try {} | ||
1| catch(Exception e) {} | ||
2| finally {} | ||
----------< |
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,30 @@ | ||
try {} | ||
catch(Exception e) {} | ||
finally {} | ||
--- | ||
|
||
[#1 Content] = | ||
[#1 Removal] = | ||
[#1 Domain] = 0:0-0:6 | ||
>------< | ||
0| try {} | ||
|
||
[#1 Insertion delimiter] = "\n" | ||
|
||
|
||
[#2 Content] = | ||
[#2 Removal] = | ||
[#2 Domain] = 1:0-1:21 | ||
>---------------------< | ||
1| catch(Exception e) {} | ||
|
||
[#2 Insertion delimiter] = "\n" | ||
|
||
|
||
[#3 Content] = | ||
[#3 Removal] = | ||
[#3 Domain] = 2:0-2:10 | ||
>----------< | ||
2| finally {} | ||
|
||
[#3 Insertion delimiter] = "\n" |
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