Skip to content

Commit

Permalink
Rename ns.doc to res.doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoc committed Nov 28, 2022
1 parent 8321081 commit a462e06
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion lib/4.06.1/unstable/js_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58484,7 +58484,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
and printAttribute ?(standalone = false) ~state
((id, payload) : Parsetree.attribute) cmtTbl =
match (id, payload) with
| ( {txt = "ns.doc"},
| ( {txt = "res.doc"},
PStr
[
{
Expand Down
8 changes: 4 additions & 4 deletions lib/4.06.1/unstable/js_playground_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58484,7 +58484,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
and printAttribute ?(standalone = false) ~state
((id, payload) : Parsetree.attribute) cmtTbl =
match (id, payload) with
| ( {txt = "ns.doc"},
| ( {txt = "res.doc"},
PStr
[
{
Expand Down Expand Up @@ -167535,7 +167535,7 @@ and parseStructureItemRegion p =
Parser.next p;
Some
(Ast_helper.Str.attribute ~loc
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down Expand Up @@ -168167,7 +168167,7 @@ and parseSignatureItemRegion p =
Parser.next p;
Some
(Ast_helper.Sig.attribute ~loc
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down Expand Up @@ -168382,7 +168382,7 @@ and parseAttribute p =
| DocComment (loc, s) ->
Parser.next p;
Some
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down
8 changes: 4 additions & 4 deletions lib/4.06.1/whole_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -113478,7 +113478,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
and printAttribute ?(standalone = false) ~state
((id, payload) : Parsetree.attribute) cmtTbl =
match (id, payload) with
| ( {txt = "ns.doc"},
| ( {txt = "res.doc"},
PStr
[
{
Expand Down Expand Up @@ -180967,7 +180967,7 @@ and parseStructureItemRegion p =
Parser.next p;
Some
(Ast_helper.Str.attribute ~loc
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down Expand Up @@ -181599,7 +181599,7 @@ and parseSignatureItemRegion p =
Parser.next p;
Some
(Ast_helper.Sig.attribute ~loc
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down Expand Up @@ -181814,7 +181814,7 @@ and parseAttribute p =
| DocComment (loc, s) ->
Parser.next p;
Some
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down
6 changes: 3 additions & 3 deletions res_syntax/src/res_core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5543,7 +5543,7 @@ and parseStructureItemRegion p =
Parser.next p;
Some
(Ast_helper.Str.attribute ~loc
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down Expand Up @@ -6175,7 +6175,7 @@ and parseSignatureItemRegion p =
Parser.next p;
Some
(Ast_helper.Sig.attribute ~loc
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down Expand Up @@ -6390,7 +6390,7 @@ and parseAttribute p =
| DocComment (loc, s) ->
Parser.next p;
Some
( {txt = "ns.doc"; loc},
( {txt = "res.doc"; loc},
PStr
[
Ast_helper.Str.eval ~loc
Expand Down
2 changes: 1 addition & 1 deletion res_syntax/src/res_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5262,7 +5262,7 @@ and printPayload ~state (payload : Parsetree.payload) cmtTbl =
and printAttribute ?(standalone = false) ~state
((id, payload) : Parsetree.attribute) cmtTbl =
match (id, payload) with
| ( {txt = "ns.doc"},
| ( {txt = "res.doc"},
PStr
[
{
Expand Down
2 changes: 1 addition & 1 deletion res_syntax/tests/idempotency/napkinscript/docComments.res
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** This is a doc ✅ comment */
let z = 34

@ns.doc("And this is a ns.doc ✅ annotation")
@res.doc("And this is a res.doc ✅ annotation")
let q = 11

/** This
Expand Down
4 changes: 2 additions & 2 deletions res_syntax/tests/parsing/other/docComments.res
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/** This is a doc ✅ comment */
let z = 34

@@ns.doc("And this is a ns.doc module annotation")
@@res.doc("And this is a res.doc module annotation")

@ns.doc("And this is a ns.doc ✅ annotation")
@res.doc("And this is a res.doc ✅ annotation")
let q = 11

/** This
Expand Down
12 changes: 6 additions & 6 deletions res_syntax/tests/parsing/other/expected/docComments.res.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[@@@ns.doc " This is a module comment "]
[@@@ns.doc " This is another module comment "]
let z = 34[@@ns.doc " This is a doc \226\156\133 comment "]
[@@@ns.doc {js|And this is a ns.doc module annotation|js}]
let q = 11[@@ns.doc {js|And this is a ns.doc ✅ annotation|js}]
type nonrec h = int[@@ns.doc
[@@@res.doc " This is a module comment "]
[@@@res.doc " This is another module comment "]
let z = 34[@@res.doc " This is a doc \226\156\133 comment "]
[@@@res.doc {js|And this is a res.doc module annotation|js}]
let q = 11[@@res.doc {js|And this is a res.doc ✅ annotation|js}]
type nonrec h = int[@@res.doc
" This\n * is a multi-line\n multiline doc comment\n "]
4 changes: 2 additions & 2 deletions res_syntax/tests/printer/comments/docComments.res
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/** This is a doc ✅ comment */
let z = 34

@@ns.doc("And this is a ns.doc module annotation")
@@res.doc("And this is a res.doc module annotation")

@ns.doc("And this is a ns.doc ✅ annotation")
@res.doc("And this is a res.doc ✅ annotation")
let q = 11

/** This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/** This is a doc ✅ comment */
let z = 34

/***And this is a ns.doc module annotation*/
/***And this is a res.doc module annotation*/

/**And this is a ns.doc ✅ annotation*/
/**And this is a res.doc ✅ annotation*/
let q = 11

/** This
Expand Down

0 comments on commit a462e06

Please sign in to comment.