Skip to content

Commit

Permalink
Make id and root public in AstNode (#912)
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Castelluccio <mcastelluccio@mozilla.com>
  • Loading branch information
Squadrick and marco-c authored Aug 22, 2022
1 parent 1cd39d7 commit 7ee331d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ pub struct AstPayload {
#[derive(Debug, Serialize)]
pub struct AstResponse {
/// The id associated to a request for an `AST`
id: String,
pub id: String,
/// The root node of an `AST`
///
/// If `None`, an error has occurred
root: Option<AstNode>,
pub root: Option<AstNode>,
}

/// Information on an `AST` node.
Expand Down

0 comments on commit 7ee331d

Please sign in to comment.