Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/not-directive/input.js

raw
1 ("use strict");
2
3 "use strict".foo;
4 "use strict"[foo];
5 "use strict"`foo`;
6 "use strict"(foo);
7 "use strict"
8 .foo;
9 "use strict"
10 [foo];
11 "use strict"
12 `foo`;
13 "use strict"
14 (foo);
15
16 // Should not be a syntax error because should not be parsed in strict mode.
17 "\5";
18
19 function f(){
20 "use strict".foo;
21 "\5";
22 }
23
24 function f(){
25 "use strict"[foo];
26 "\5";
27 }
28
29 function f(){
30 "use strict"`foo`;
31 "\5";
32 }
33
34 function f(){
35 "use strict"(foo);
36 "\5";
37 }
38
39 function f(){
40 "use strict"
41 .foo;
42 "\5";
43 }
44
45 function f(){
46 "use strict"
47 [foo];
48 "\5";
49 }
50
51 function f(){
52 "use strict"
53 `foo`;
54 "\5";
55 }
56
57 function f(){
58 "use strict"
59 (foo);
60 "\5";
61 }
62
63 function f(){
64 foo();
65 "use strict".bar;
66 "\5";
67 }
68
69 function f(){
70 foo();
71 "use strict"[bar];
72 "\5";
73 }
74
75 function f(){
76 foo();
77 "use strict"`bar`;
78 "\5";
79 }
80
81 function f(){
82 foo();
83 "use strict"(bar);
84 "\5";
85 }
86
87 function f(){
88 foo();
89 "use strict"
90 .bar;
91 "\5";
92 }
93
94 function f(){
95 foo();
96 "use strict"
97 [bar];
98 "\5";
99 }
100
101 function f(){
102 foo();
103 "use strict"
104 `bar`;
105 "\5";
106 }
107
108 function f(){
109 foo();
110 "use strict"
111 (bar);
112 "\5";
113 }
114
115 function f(){
116 05;
117 "use strict";
118 }