-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2920 Properly handle flow abruption in ternary condition
- Loading branch information
Showing
7 changed files
with
161 additions
and
4 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
2 changes: 1 addition & 1 deletion
2
plugin/src/test/resources/annotator/perl/unreachableCode/ternaryDieCondition.code
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 |
---|---|---|
@@ -1 +1 @@ | ||
die("some") <error descr="Unreachable code">?</error> "one"<error descr="Unreachable code">:</error> "<error descr="Unreachable code">Two</error>"; | ||
die("some") ? "<error descr="Unreachable code">one</error>": "<error descr="Unreachable code">Two</error>"; |
144 changes: 144 additions & 0 deletions
144
plugin/src/test/resources/unit/perl/controlFlow/svg/ternaryDieCondition.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
plugin/src/test/resources/unit/perl/controlFlow/ternaryDieCondition.code
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 @@ | ||
die("some") ? "one": "Two"; |
7 changes: 7 additions & 0 deletions
7
plugin/src/test/resources/unit/perl/controlFlow/ternaryDieCondition.pl.txt
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,7 @@ | ||
0(1) element: null (InstructionImpl) | ||
1(2) element: Perl5 (InstructionImpl) | ||
2(3) element: PsiPerlStringDqImpl(Perl5: STRING_DQ) (InstructionImpl) | ||
3(6) element: PsiPerlSubCallImpl(SUB_CALL) (PerlNoResultInstruction) | ||
4(6) element: PsiPerlStringDqImpl(Perl5: STRING_DQ) (InstructionImpl) | ||
5(6) element: PsiPerlStringDqImpl(Perl5: STRING_DQ) (InstructionImpl) | ||
6() element: null (InstructionImpl) |
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