mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
31 lines
1001 B
JavaScript
31 lines
1001 B
JavaScript
/*expected
|
|
initial->s2_1->s2_2->s2_3;
|
|
s2_1->s2_3->final;
|
|
*/
|
|
/*expected
|
|
initial->s1_1->final;
|
|
*/
|
|
function foo(a = 0) {
|
|
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];
|
|
s2_1[label="FunctionDeclaration\nIdentifier (foo)\nAssignmentPattern\nIdentifier (a)"];
|
|
s2_2[label="Literal (0)"];
|
|
s2_3[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (bar)"];
|
|
initial->s2_1->s2_2->s2_3;
|
|
s2_1->s2_3->final;
|
|
}
|
|
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\nFunctionDeclaration\nEmptyStatement"];
|
|
initial->s1_1->final;
|
|
}
|
|
*/
|