mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
33 lines
1008 B
JavaScript
33 lines
1008 B
JavaScript
/*expected
|
|
initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_7;
|
|
s1_1->s1_5;
|
|
s1_2->s1_5;
|
|
s1_3->s1_5;
|
|
s1_4->s1_6->s1_7->final;
|
|
*/
|
|
if (a || b || c || d) {
|
|
foo();
|
|
} else {
|
|
bar();
|
|
}
|
|
|
|
/*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\nIfStatement\nLogicalExpression\nLogicalExpression\nLogicalExpression\nIdentifier (a)"];
|
|
s1_2[label="Identifier (b)"];
|
|
s1_3[label="Identifier (c)"];
|
|
s1_4[label="Identifier (d)"];
|
|
s1_5[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (foo)"];
|
|
s1_7[label="IfStatement:exit\nProgram:exit"];
|
|
s1_6[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (bar)"];
|
|
initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_7;
|
|
s1_1->s1_5;
|
|
s1_2->s1_5;
|
|
s1_3->s1_5;
|
|
s1_4->s1_6->s1_7->final;
|
|
}
|
|
*/
|