Skip to content

Commit a462e06

Browse files
committed
Rename ns.doc to res.doc.
1 parent 8321081 commit a462e06

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

lib/4.06.1/unstable/js_compiler.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58484,7 +58484,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
5848458484
and printAttribute ?(standalone = false) ~state
5848558485
((id, payload) : Parsetree.attribute) cmtTbl =
5848658486
match (id, payload) with
58487-
| ( {txt = "ns.doc"},
58487+
| ( {txt = "res.doc"},
5848858488
PStr
5848958489
[
5849058490
{

lib/4.06.1/unstable/js_playground_compiler.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -58484,7 +58484,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
5848458484
and printAttribute ?(standalone = false) ~state
5848558485
((id, payload) : Parsetree.attribute) cmtTbl =
5848658486
match (id, payload) with
58487-
| ( {txt = "ns.doc"},
58487+
| ( {txt = "res.doc"},
5848858488
PStr
5848958489
[
5849058490
{
@@ -167535,7 +167535,7 @@ and parseStructureItemRegion p =
167535167535
Parser.next p;
167536167536
Some
167537167537
(Ast_helper.Str.attribute ~loc
167538-
( {txt = "ns.doc"; loc},
167538+
( {txt = "res.doc"; loc},
167539167539
PStr
167540167540
[
167541167541
Ast_helper.Str.eval ~loc
@@ -168167,7 +168167,7 @@ and parseSignatureItemRegion p =
168167168167
Parser.next p;
168168168168
Some
168169168169
(Ast_helper.Sig.attribute ~loc
168170-
( {txt = "ns.doc"; loc},
168170+
( {txt = "res.doc"; loc},
168171168171
PStr
168172168172
[
168173168173
Ast_helper.Str.eval ~loc
@@ -168382,7 +168382,7 @@ and parseAttribute p =
168382168382
| DocComment (loc, s) ->
168383168383
Parser.next p;
168384168384
Some
168385-
( {txt = "ns.doc"; loc},
168385+
( {txt = "res.doc"; loc},
168386168386
PStr
168387168387
[
168388168388
Ast_helper.Str.eval ~loc

lib/4.06.1/whole_compiler.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -113478,7 +113478,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
113478113478
and printAttribute ?(standalone = false) ~state
113479113479
((id, payload) : Parsetree.attribute) cmtTbl =
113480113480
match (id, payload) with
113481-
| ( {txt = "ns.doc"},
113481+
| ( {txt = "res.doc"},
113482113482
PStr
113483113483
[
113484113484
{
@@ -180967,7 +180967,7 @@ and parseStructureItemRegion p =
180967180967
Parser.next p;
180968180968
Some
180969180969
(Ast_helper.Str.attribute ~loc
180970-
( {txt = "ns.doc"; loc},
180970+
( {txt = "res.doc"; loc},
180971180971
PStr
180972180972
[
180973180973
Ast_helper.Str.eval ~loc
@@ -181599,7 +181599,7 @@ and parseSignatureItemRegion p =
181599181599
Parser.next p;
181600181600
Some
181601181601
(Ast_helper.Sig.attribute ~loc
181602-
( {txt = "ns.doc"; loc},
181602+
( {txt = "res.doc"; loc},
181603181603
PStr
181604181604
[
181605181605
Ast_helper.Str.eval ~loc
@@ -181814,7 +181814,7 @@ and parseAttribute p =
181814181814
| DocComment (loc, s) ->
181815181815
Parser.next p;
181816181816
Some
181817-
( {txt = "ns.doc"; loc},
181817+
( {txt = "res.doc"; loc},
181818181818
PStr
181819181819
[
181820181820
Ast_helper.Str.eval ~loc

res_syntax/src/res_core.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5543,7 +5543,7 @@ and parseStructureItemRegion p =
55435543
Parser.next p;
55445544
Some
55455545
(Ast_helper.Str.attribute ~loc
5546-
( {txt = "ns.doc"; loc},
5546+
( {txt = "res.doc"; loc},
55475547
PStr
55485548
[
55495549
Ast_helper.Str.eval ~loc
@@ -6175,7 +6175,7 @@ and parseSignatureItemRegion p =
61756175
Parser.next p;
61766176
Some
61776177
(Ast_helper.Sig.attribute ~loc
6178-
( {txt = "ns.doc"; loc},
6178+
( {txt = "res.doc"; loc},
61796179
PStr
61806180
[
61816181
Ast_helper.Str.eval ~loc
@@ -6390,7 +6390,7 @@ and parseAttribute p =
63906390
| DocComment (loc, s) ->
63916391
Parser.next p;
63926392
Some
6393-
( {txt = "ns.doc"; loc},
6393+
( {txt = "res.doc"; loc},
63946394
PStr
63956395
[
63966396
Ast_helper.Str.eval ~loc

res_syntax/src/res_printer.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5262,7 +5262,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
52625262
and printAttribute ?(standalone = false) ~state
52635263
((id, payload) : Parsetree.attribute) cmtTbl =
52645264
match (id, payload) with
5265-
| ( {txt = "ns.doc"},
5265+
| ( {txt = "res.doc"},
52665266
PStr
52675267
[
52685268
{

res_syntax/tests/idempotency/napkinscript/docComments.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** This is a doc ✅ comment */
22
let z = 34
33

4-
@ns.doc("And this is a ns.doc ✅ annotation")
4+
@res.doc("And this is a res.doc ✅ annotation")
55
let q = 11
66

77
/** This

res_syntax/tests/parsing/other/docComments.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
/** This is a doc ✅ comment */
66
let z = 34
77

8-
@@ns.doc("And this is a ns.doc module annotation")
8+
@@res.doc("And this is a res.doc module annotation")
99

10-
@ns.doc("And this is a ns.doc ✅ annotation")
10+
@res.doc("And this is a res.doc ✅ annotation")
1111
let q = 11
1212

1313
/** This
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[@@@ns.doc " This is a module comment "]
2-
[@@@ns.doc " This is another module comment "]
3-
let z = 34[@@ns.doc " This is a doc \226\156\133 comment "]
4-
[@@@ns.doc {js|And this is a ns.doc module annotation|js}]
5-
let q = 11[@@ns.doc {js|And this is a ns.doc ✅ annotation|js}]
6-
type nonrec h = int[@@ns.doc
1+
[@@@res.doc " This is a module comment "]
2+
[@@@res.doc " This is another module comment "]
3+
let z = 34[@@res.doc " This is a doc \226\156\133 comment "]
4+
[@@@res.doc {js|And this is a res.doc module annotation|js}]
5+
let q = 11[@@res.doc {js|And this is a res.doc ✅ annotation|js}]
6+
type nonrec h = int[@@res.doc
77
" This\n * is a multi-line\n multiline doc comment\n "]

res_syntax/tests/printer/comments/docComments.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
/** This is a doc ✅ comment */
66
let z = 34
77

8-
@@ns.doc("And this is a ns.doc module annotation")
8+
@@res.doc("And this is a res.doc module annotation")
99

10-
@ns.doc("And this is a ns.doc ✅ annotation")
10+
@res.doc("And this is a res.doc ✅ annotation")
1111
let q = 11
1212

1313
/** This

res_syntax/tests/printer/comments/expected/docComments.res.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
/** This is a doc ✅ comment */
66
let z = 34
77

8-
/***And this is a ns.doc module annotation*/
8+
/***And this is a res.doc module annotation*/
99

10-
/**And this is a ns.doc ✅ annotation*/
10+
/**And this is a res.doc ✅ annotation*/
1111
let q = 11
1212

1313
/** This

0 commit comments

Comments
 (0)