-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) * upgrade deps * update code path analysis for nullish coalescing * update rules for `export * as ns from "source"` * add a few tests for import.meta * update rules for nullish coalescing * update deps * add tests to no-restricted-imports * add tests to camelcase * add tests to id-blacklist * add tests for id-match
- Loading branch information
1 parent
d5fce9f
commit dd949ae
Showing
39 changed files
with
834 additions
and
31 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
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
23 changes: 23 additions & 0 deletions
23
tests/fixtures/code-path-analysis/logical--do-while-qq-1.js
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,23 @@ | ||
/*expected | ||
initial->s1_1->s1_2->s1_3->s1_2->s1_2; | ||
s1_3->s1_4; | ||
s1_2->s1_4->final; | ||
*/ | ||
do { | ||
foo(); | ||
} while (a ?? b); | ||
|
||
/*DOT | ||
digraph { | ||
node[shape=box,style="rounded,filled",fillcolor=white]; | ||
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25]; | ||
final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25]; | ||
s1_1[label="Program\nDoWhileStatement"]; | ||
s1_2[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (foo)\nLogicalExpression\nIdentifier (a)\nIdentifier:exit (foo)\nCallExpression:exit\nExpressionStatement:exit\nBlockStatement:exit\nIdentifier:exit (a)"]; | ||
s1_3[label="Identifier (b)\nIdentifier:exit (b)\nLogicalExpression:exit"]; | ||
s1_4[label="DoWhileStatement:exit\nProgram:exit"]; | ||
initial->s1_1->s1_2->s1_3->s1_2->s1_2; | ||
s1_3->s1_4; | ||
s1_2->s1_4->final; | ||
} | ||
*/ |
33 changes: 33 additions & 0 deletions
33
tests/fixtures/code-path-analysis/logical--do-while-qq-2.js
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,33 @@ | ||
/*expected | ||
initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_2->s1_2; | ||
s1_3->s1_2; | ||
s1_4->s1_2; | ||
s1_5->s1_6; | ||
s1_2->s1_6; | ||
s1_3->s1_6; | ||
s1_4->s1_6->final; | ||
*/ | ||
do { | ||
foo(); | ||
} while (a ?? b ?? c ?? d); | ||
|
||
/*DOT | ||
digraph { | ||
node[shape=box,style="rounded,filled",fillcolor=white]; | ||
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25]; | ||
final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25]; | ||
s1_1[label="Program\nDoWhileStatement"]; | ||
s1_2[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (foo)\nLogicalExpression\nLogicalExpression\nLogicalExpression\nIdentifier (a)\nIdentifier:exit (foo)\nCallExpression:exit\nExpressionStatement:exit\nBlockStatement:exit\nIdentifier:exit (a)"]; | ||
s1_3[label="Identifier (b)\nIdentifier:exit (b)\nLogicalExpression:exit"]; | ||
s1_4[label="Identifier (c)\nIdentifier:exit (c)\nLogicalExpression:exit"]; | ||
s1_5[label="Identifier (d)\nIdentifier:exit (d)\nLogicalExpression:exit"]; | ||
s1_6[label="DoWhileStatement:exit\nProgram:exit"]; | ||
initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_2->s1_2; | ||
s1_3->s1_2; | ||
s1_4->s1_2; | ||
s1_5->s1_6; | ||
s1_2->s1_6; | ||
s1_3->s1_6; | ||
s1_4->s1_6->final; | ||
} | ||
*/ |
Oops, something went wrong.