AST - Made statement nodes visible inside a program node
This commit is contained in:
parent
f17cafd910
commit
402e0a10d9
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ use crate::tokens::Token;
|
|||
|
||||
/// The AST node for the program
|
||||
#[derive(Default, Debug, Clone)]
|
||||
pub struct ProgramNode(Vec<StmtNode>);
|
||||
pub struct ProgramNode(pub Vec<StmtNode>);
|
||||
|
||||
/// An AST node that represents a statement.
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
Loading…
Reference in a new issue