Lines Matching refs:module
30 // Test basic module syntax, with and without automatic semicolon insertion.
32 module A {}
34 module A1 = A
35 module A2 = A;
36 module A3 = A2
38 module B {
50 module C0 {}
52 export module C {
54 export module D { export let x }
67 export module M1 {}
68 export module M2 = C.D
69 export module M3 at "http://where"
76 module I {
78 export module M {}
81 module C1 = B.C;
82 module D1 = B.C.D
83 module D2 = C1.D
84 module D3 = D2
86 module E1 at "http://where"
87 module E2 at "http://where";
88 module E3 = E1
92 module X
97 module Y
101 module Z
113 module Wrap {
145 module V
154 // Check that 'module' still works as an identifier.
156 var module
157 module = {}
158 module["a"] = 6
159 function module() {}
160 function f(module) { return module }
161 try {} catch (module) {}
163 module
168 // Check that module declarations are rejected in eval or local scope.
170 module M { export let x; }
175 assertThrows("module M {};", SyntaxError);
180 assertThrows("{ module M {}; }", SyntaxError);
185 assertThrows("function f() { module M {}; }", SyntaxError);
190 assertThrows("function f() { { module M {}; } }", SyntaxError);