Syntax Lookup
Enter some language construct you want to know more about.
This is the @live decorator.
This decorator requires
reanalyze
, a code analysis tool for ReScript, to be installed. Click here to read about how you get started with reanalyze..
@live
tells reanalyze's 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.