Skip to content

Commit

Permalink
Merge pull request #17 from dtolnay/recoveryexpr
Browse files Browse the repository at this point in the history
Add RecoveryExpr node
  • Loading branch information
dtolnay authored Dec 5, 2022
2 parents 4f9e53c + a0f0fc7 commit 77ab9ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ kind! {
QualType,
RValueReferenceType,
RecordType,
RecoveryExpr,
RequiresExpr,
RestrictAttr,
ReturnStmt,
Expand Down
11 changes: 11 additions & 0 deletions tests/exhaustive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ pub enum Clang {
QualType(QualType),
RValueReferenceType(RValueReferenceType),
RecordType(RecordType),
RecoveryExpr(RecoveryExpr),
RequiresExpr(RequiresExpr),
RestrictAttr(RestrictAttr),
ReturnStmt(ReturnStmt),
Expand Down Expand Up @@ -2221,6 +2222,16 @@ pub struct RecordType {
pub decl: Decl,
}

#[derive(Deserialize, Debug)]
#[serde(deny_unknown_fields)]
#[non_exhaustive]
pub struct RecoveryExpr {
pub range: SourceRange,
pub r#type: Type,
#[serde(rename = "valueCategory")]
pub value_category: ValueCategory,
}

#[derive(Deserialize, Debug)]
#[serde(deny_unknown_fields)]
#[non_exhaustive]
Expand Down

0 comments on commit 77ab9ac

Please sign in to comment.