Skip to content

Update Punctuated to handle the final_value_opt #2073

@kayagokalp

Description

@kayagokalp

Currently, if there is no trailing , after the last enum variant, the variant is completely removed from the formatted output.

Example:

contract;

enum Color {
 Red : (),
 Blue : ()
}

is formatted to

contract;

enum Color {
 Red : (),
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions