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 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