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

Commit

Permalink
feat(rome_js_parser): EcmaScript @decorators #4252
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Apr 30, 2023
1 parent 6d77bad commit c8ba346
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions crates/rome_js_parser/src/syntax/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -892,28 +892,8 @@ fn is_at_static_initialization_block_class_member(p: &mut JsParser) -> bool {
fn parse_static_initialization_block_class_member(
p: &mut JsParser,
member_marker: Marker,
// decorator_list: ParsedSyntax,
modifiers: ClassMemberModifiers,
) -> CompletedMarker {
// match decorator_list {
// Present(marker) if marker.range(p).is_empty() => {
// marker.undo_completion(p).abandon(p);
// }
// decorator_list => {
// // test_err ts ts_static_initialization_block_member_with_decorators
// // class Foo {
// // @dec static {
// // this.a = "test";
// // }
// // }
// if let Some(mut marker) =
// decorator_list.add_diagnostic_if_present(p, decorators_not_allowed)
// {
// marker.change_to_bogus(p);
// }
// }
// }

if modifiers.is_empty() {
modifiers.abandon(p);
} else {
Expand Down

0 comments on commit c8ba346

Please sign in to comment.