mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
* 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
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
/*expected
|
|
initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_6->s1_2->s1_6;
|
|
s1_3->s1_6;
|
|
s1_4->s1_6;
|
|
s1_5->s1_7;
|
|
s1_2->s1_7;
|
|
s1_3->s1_7;
|
|
s1_4->s1_7->final;
|
|
*/
|
|
while (a ?? b ?? c ?? d) {
|
|
foo();
|
|
}
|
|
|
|
/*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\nWhileStatement"];
|
|
s1_2[label="LogicalExpression\nLogicalExpression\nLogicalExpression\nIdentifier (a)\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="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (foo)\nIdentifier:exit (foo)\nCallExpression:exit\nExpressionStatement:exit\nBlockStatement:exit"];
|
|
s1_7[label="WhileStatement:exit\nProgram:exit"];
|
|
initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_6->s1_2->s1_6;
|
|
s1_3->s1_6;
|
|
s1_4->s1_6;
|
|
s1_5->s1_7;
|
|
s1_2->s1_7;
|
|
s1_3->s1_7;
|
|
s1_4->s1_7->final;
|
|
}
|
|
*/
|