Skip to content

Commit

Permalink
Merge pull request #142 from anweiss/optional-field-validation-bug
Browse files Browse the repository at this point in the history
Fix optional field validation bug
  • Loading branch information
anweiss authored Oct 3, 2022
2 parents ad57b7e + b199c28 commit cf7fd41
Show file tree
Hide file tree
Showing 3 changed files with 582 additions and 331 deletions.
6 changes: 3 additions & 3 deletions src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ pub struct GenericParams<'a> {

/// Generic parameter
#[cfg_attr(target_arch = "wasm32", derive(Serialize))]
#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct GenericParam<'a> {
/// Generic parameter
pub param: Identifier<'a>,
Expand Down Expand Up @@ -2280,7 +2280,7 @@ impl<'a> GroupEntry<'a> {

/// Optional comma
#[cfg_attr(target_arch = "wasm32", derive(Serialize))]
#[derive(Debug, Clone, PartialEq, Default)]
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct OptionalComma<'a> {
/// Optional comma
pub optional_comma: bool,
Expand Down Expand Up @@ -2474,7 +2474,7 @@ impl<'a> fmt::Display for GroupEntry<'a> {

/// Occurrence indicator
#[cfg_attr(target_arch = "wasm32", derive(Serialize))]
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Occurrence<'a> {
/// Occurrence indicator
pub occur: Occur,
Expand Down
Loading

0 comments on commit cf7fd41

Please sign in to comment.