Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fix(rome_js_parser): parse "async" as class member property correctly (
Browse files Browse the repository at this point in the history
  • Loading branch information
nissy-dev authored Dec 29, 2022
1 parent 4a266b5 commit 23eb1d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 196 deletions.

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions crates/rome_js_parser/src/syntax/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ fn parse_class_member_impl(
// Seems like we're at an async method
if p.at(T![async])
&& !p.nth_at(1, T![?])
&& !p.nth_at(1, T![;])
&& !p.nth_at(1, T![=])
&& !is_at_method_class_member(p, 1)
&& !p.has_nth_preceding_line_break(1)
{
Expand Down

0 comments on commit 23eb1d1

Please sign in to comment.