rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

The compiler for ReScript.

Results 500 rescript-compiler issues
Sort by recently updated
recently updated
newest added

This introduces OCaml multicore (Eio) to the `analysis` bin, and leverages it for 2 of the editor tooling commands: - `rename` - Find all references Benching this on my local...

This PR implements automatic wrapping of string literals in JSX children with `Jsx.string()` calls, eliminating the need for manual wrapping. ## Problem Currently, string literals in JSX children must be...

It seems both "find references" and "rename" does not find JSX component usage. We'll probably need some JSX heuristics here for this to really work.

…annotation to avoid crash; emit diagnostic instead (fixes #7850) - Wrap varify_constructors call and surface friendly error - Add super-error fixture for ticked params under type ... . Refs: rescript-lang/rescript#7850

…ocs: update AGENTS; docstring_tests: update DocTest outputs

While trying to figure out how the `type` keyword behaves in function signatures, I ran into a syntax error that provides no error message or line number: I'm using the...

https://rescript-lang.org/try?version=v11.1.4&module=esmodule&code=LYewJgrgNgpgBAUQG4wHYBc4F44G8BQcc6AngA7yY4A+iKGAgvoXLJgBYCGqYs2cAChj10ALmIBKbAD48LIgGcA7gEt0AY3ZxhaTASJFayXQxmCJ8uAF8WNm-lCQ+AZRgAnFG+MYA4iHDi+qwwmGgAjhAwkeLe6AB0VLIQqGr4VvxBpBTE2Ja0cQWxCcxEbHBcPHw4nAokqOqCOhji6FJYskGKqhpaTXp5dCZmAhYG1rYsZeGRkfxCIjEiCW2yFbwwAspqmtoicoaDjGaxTERWEgC00ioA5qggbjBpzI7Q8K4e7rEAQpxggZMQtpUBEojBFroEmZkql0jhMuRKLkxvlCkt0CVghxuOt+DU6g15roWit9gYtj1droyQcTsNRgYbGdAaEQTN4Dgic1DvFWmY1rAuZhRLJWldbvdHs8gA The good variant uses a switch and there is no warning, the bad variant coerces the type and now there is a warning that the type has not been...

The compiler (v11) does not support `@s.strict` in the following structure: ```rescript @schema type t = @s.strict { email: string, name: string, } ``` This is expected to work at...

Attributes and their meaning is scattered between the syntax and the compiler. We should unify these (and see which ones deserve first class representation in the AST now that we...