Skip to content

Commit d3cbf35

Browse files
committed
allow tag fields everywhere
1 parent 17fcd49 commit d3cbf35

File tree

7 files changed

+48
-0
lines changed

7 files changed

+48
-0
lines changed

atd/src/json.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ let annot_schema_json : Annot.schema = [
9090
Variant, "name";
9191
Field, "name";
9292
Field, "tag_field";
93+
Module_head, "tag";
94+
Type_def, "tag";
95+
Type_expr, "tag";
96+
Variant, "tag";
97+
Cell, "tag";
98+
Field, "tag";
9399
]
94100
};
95101
{

atdcpp/src/lib/Codegen.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ let annot_schema_cpp : Atd.Annot.schema_section =
3434
Field, "default";
3535
Module_head, "include";
3636
Module_head, "namespace";
37+
Module_head, "tag";
38+
Type_def, "tag";
39+
Type_expr, "tag";
40+
Variant, "tag";
41+
Cell, "tag";
42+
Field, "tag";
3743
]
3844
}
3945

atdd/src/lib/Codegen.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ let annot_schema_dlang : Atd.Annot.schema_section =
3232
Type_expr, "wrap";
3333
Field, "default";
3434
Module_head, "import";
35+
Module_head, "tag";
36+
Type_def, "tag";
37+
Type_expr, "tag";
38+
Variant, "tag";
39+
Cell, "tag";
40+
Field, "tag";
3541
]
3642
}
3743

atdgen/src/biniou.ml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ let annot_schema_biniou : Atd.Annot.schema = [
4141
section = "biniou";
4242
fields = [
4343
Type_expr, "repr";
44+
Module_head, "tag";
45+
Type_def, "tag";
46+
Type_expr, "tag";
47+
Variant, "tag";
48+
Cell, "tag";
49+
Field, "tag";
4450
]
4551
};
4652
{
@@ -50,6 +56,12 @@ let annot_schema_biniou : Atd.Annot.schema = [
5056
Type_def, "module";
5157
Type_def, "predef";
5258
Type_def, "t";
59+
Module_head, "tag";
60+
Type_def, "tag";
61+
Type_expr, "tag";
62+
Variant, "tag";
63+
Cell, "tag";
64+
Field, "tag";
5365
]
5466
};
5567
]

atdgen/src/ocaml.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ let annot_schema_ocaml : Atd.Annot.schema_section =
169169
Field, "mutable";
170170
Field, "name";
171171
Field, "repr";
172+
Module_head, "tag";
173+
Type_def, "tag";
174+
Type_expr, "tag";
175+
Variant, "tag";
176+
Cell, "tag";
177+
Field, "tag";
172178
]
173179
}
174180

atdpy/src/lib/Codegen.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ let annot_schema_python : Atd.Annot.schema_section =
4646
Type_def, "decorator";
4747
Type_expr, "repr";
4848
Field, "default";
49+
Module_head, "tag";
50+
Type_def, "tag";
51+
Type_expr, "tag";
52+
Variant, "tag";
53+
Cell, "tag";
54+
Field, "tag";
4955
]
5056
}
5157

atdts/src/lib/Codegen.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ let annot_schema_ts : Atd.Annot.schema_section =
2727
Field, "default";
2828
Type_def, "from";
2929
Type_def, "t";
30+
Module_head, "tag";
31+
Type_def, "tag";
32+
Type_expr, "tag";
33+
Variant, "tag";
34+
Cell, "tag";
35+
Field, "tag";
3036
]
3137
}
3238

0 commit comments

Comments
 (0)