Skip to content

Commit 2f3aa82

Browse files
committed
update test files
1 parent 8aa4df8 commit 2f3aa82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

analysis/tests/src/expected/Completion.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ Completable: Cdecorator(reac)
494494
"kind": 4,
495495
"tags": [],
496496
"detail": "",
497-
"documentation": null
497+
"documentation": {"kind": "markdown", "value": "The `@react.component` decorator is used to annotate functions that are RescriptReact components.\n\nYou will need this decorator whenever you want to use a ReScript / React component in ReScript JSX expressions.\n\nNote: The `@react.component` decorator requires the react-jsx config to be set in your `bsconfig.json` to enable the required React transformations.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#react-component-decorator)."}
498498
}]
499499

500500
Complete tests/src/Completion.res 68:10
@@ -507,7 +507,7 @@ Completable: Cdecorator(react.)
507507
"kind": 4,
508508
"tags": [],
509509
"detail": "",
510-
"documentation": null
510+
"documentation": {"kind": "markdown", "value": "The `@react.component` decorator is used to annotate functions that are RescriptReact components.\n\nYou will need this decorator whenever you want to use a ReScript / React component in ReScript JSX expressions.\n\nNote: The `@react.component` decorator requires the react-jsx config to be set in your `bsconfig.json` to enable the required React transformations.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#react-component-decorator)."}
511511
}]
512512

513513
Complete tests/src/Completion.res 71:27

analysis/tests/src/expected/Hover.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ Hover tests/src/Hover.res 112:3
6868
Nothing at that position. Now trying to use completion.
6969
Attribute id:live:[112:0->112:5] label:live
7070
Completable: Cdecorator(live)
71-
{"contents": "...docs for live..."}
71+
{"contents": "The `@live` decorator is for reanalyze, a static analysis tool for ReScript that can do dead code analysis.\n\n`@live` tells the dead code analysis that the value should be considered live, even though it might appear to be dead. This is typically used in case of FFI where there are indirect ways to access values. It can be added to everything that could otherwise be considered unused by the dead code analysis - values, functions, arguments, records, individual record fields, and so on.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#live-decorator)."}
7272

0 commit comments

Comments
 (0)