We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48aedb2 commit 4a2abb4Copy full SHA for 4a2abb4
jscomp/core/typemod_hide.ml renamed to jscomp/syntax/typemod_hide.ml
@@ -28,4 +28,19 @@ let should_hide ( x : Typedtree.module_binding) =
28
| [] -> false
29
| ({txt = "internal.local";_},_) :: rest -> true
30
| _ :: rest ->
31
- Ext_list.exists rest (fun (x,_) -> x.txt = "internal.local")
+ Ext_list.exists rest (fun (x,_) -> x.txt = "internal.local")
32
+
33
+let attrs : Parsetree.attributes =
34
+ [{txt = "internal.local";loc = Location.none}, PStr []]
35
36
+let check (x : Parsetree.structure_item) =
37
+ match x.pstr_desc with
38
+ | Pstr_eval _
39
+ | Pstr_value _
40
+ | Pstr_primitive _
41
+ | Pstr_typext _
42
+ | Pstr_exception _
43
+ -> ()
44
+ | _ ->
45
+ Location.raise_errorf ~loc:x.pstr_loc
46
+ "the structure is not supported in local extension"
0 commit comments