Files
Toru NagashimaandGitHub 123a8b156c Update: support ?? operator, import.meta, and export * as ns (#13196)
* 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
2020-06-04 17:53:43 -04:00

25 lines
779 B
JavaScript

/*expected
initial->s1_1->s1_2->s1_3->s1_4->s1_5;
s1_1->s1_5;
s1_2->s1_5;
s1_3->s1_5->final;
*/
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\nExpressionStatement\nLogicalExpression\nLogicalExpression\nLogicalExpression\nIdentifier (a)"];
s1_2[label="Identifier (b)"];
s1_3[label="Identifier (c)"];
s1_4[label="Identifier (d)"];
s1_5[label="LogicalExpression:exit\nExpressionStatement:exit\nProgram:exit"];
initial->s1_1->s1_2->s1_3->s1_4->s1_5;
s1_1->s1_5;
s1_2->s1_5;
s1_3->s1_5->final;
}
*/