Skip to content

Commit 44db78b

Browse files
authored
Remove leftovers from "meth" attribute (#8022)
* Remove leftovers from "meth" attribute * CHANGELOG
1 parent 63bc9cf commit 44db78b

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#### :house: Internal
3131

3232
- Editor: resolve @rescript/runtime via environment variable RESCRIPT_RUNTIME. https://github.com/rescript-lang/rescript/pull/8023
33+
- Remove leftovers from `@meth` attribute. https://github.com/rescript-lang/rescript/pull/8022
3334

3435
# 12.0.0-rc.4
3536

analysis/src/CompletionDecorators.ml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ could potentially throw.
129129

130130
Hint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!|};
131131
] );
132-
( "meth",
133-
None,
134-
[
135-
{|The `@meth` decorator is used to call a function on a JavaScript object, and avoid issues with currying.
136-
137-
[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#meth-decorator).|};
138-
] );
139132
( "module",
140133
Some "module(\"$0\")",
141134
[

compiler/syntax/src/res_parsetree_viewer.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ let filter_parsing_attrs attrs =
198198
match attr with
199199
| ( {
200200
Location.txt =
201-
( "meth" | "res.braces" | "ns.braces" | "res.iflet"
202-
| "res.ternary" | "res.await" | "res.template"
203-
| "res.taggedTemplate" | "res.patVariantSpread"
204-
| "res.dictPattern" | "res.inlineRecordDefinition" );
201+
( "res.braces" | "ns.braces" | "res.iflet" | "res.ternary"
202+
| "res.await" | "res.template" | "res.taggedTemplate"
203+
| "res.patVariantSpread" | "res.dictPattern"
204+
| "res.inlineRecordDefinition" );
205205
},
206206
_ ) ->
207207
false

0 commit comments

Comments
 (0)