From 5acc440c79df89658d8d2f641a97098ce4a0a2ab Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 18 Nov 2025 17:33:45 +0100 Subject: [PATCH 1/2] Remove leftovers from "meth" attribute --- analysis/src/CompletionDecorators.ml | 7 ------- compiler/syntax/src/res_parsetree_viewer.ml | 8 ++++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/analysis/src/CompletionDecorators.ml b/analysis/src/CompletionDecorators.ml index e03a06f8cd..c53f1609cf 100644 --- a/analysis/src/CompletionDecorators.ml +++ b/analysis/src/CompletionDecorators.ml @@ -129,13 +129,6 @@ could potentially throw. Hint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!|}; ] ); - ( "meth", - None, - [ - {|The `@meth` decorator is used to call a function on a JavaScript object, and avoid issues with currying. - -[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#meth-decorator).|}; - ] ); ( "module", Some "module(\"$0\")", [ diff --git a/compiler/syntax/src/res_parsetree_viewer.ml b/compiler/syntax/src/res_parsetree_viewer.ml index 8c2b6c3051..0d972819d8 100644 --- a/compiler/syntax/src/res_parsetree_viewer.ml +++ b/compiler/syntax/src/res_parsetree_viewer.ml @@ -198,10 +198,10 @@ let filter_parsing_attrs attrs = match attr with | ( { Location.txt = - ( "meth" | "res.braces" | "ns.braces" | "res.iflet" - | "res.ternary" | "res.await" | "res.template" - | "res.taggedTemplate" | "res.patVariantSpread" - | "res.dictPattern" | "res.inlineRecordDefinition" ); + ( "res.braces" | "ns.braces" | "res.iflet" | "res.ternary" + | "res.await" | "res.template" | "res.taggedTemplate" + | "res.patVariantSpread" | "res.dictPattern" + | "res.inlineRecordDefinition" ); }, _ ) -> false From 8ec9ed77fc6a4d54795c7f4654f64e8180c48016 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Fri, 21 Nov 2025 09:00:28 +0100 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6b1e55d5a..72042d14d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ #### :house: Internal - Editor: resolve @rescript/runtime via environment variable RESCRIPT_RUNTIME. https://github.com/rescript-lang/rescript/pull/8023 +- Remove leftovers from `@meth` attribute. https://github.com/rescript-lang/rescript/pull/8022 # 12.0.0-rc.4