mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-10-04 16:10:05 +00:00
25 lines
899 B
JavaScript
25 lines
899 B
JavaScript
/*expected
|
|
initial->s1_1->s1_2->s1_3->s1_4->s1_2->s1_4;
|
|
s1_3->s1_5;
|
|
s1_2->s1_5->final;
|
|
*/
|
|
while (a ?? b) {
|
|
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\nIdentifier (a)\nIdentifier:exit (a)"];
|
|
s1_3[label="Identifier (b)\nIdentifier:exit (b)\nLogicalExpression:exit"];
|
|
s1_4[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (foo)\nIdentifier:exit (foo)\nCallExpression:exit\nExpressionStatement:exit\nBlockStatement:exit"];
|
|
s1_5[label="WhileStatement:exit\nProgram:exit"];
|
|
initial->s1_1->s1_2->s1_3->s1_4->s1_2->s1_4;
|
|
s1_3->s1_5;
|
|
s1_2->s1_5->final;
|
|
}
|
|
*/
|