fix renamed struct in test

This commit is contained in:
collin 2020-11-13 12:38:06 -08:00
parent a570a2a13e
commit 1fe4fd03a4

View File

@ -16,7 +16,7 @@
pub mod symbol_table;
use leo_ast::{Input, LeoAst};
use leo_ast::{Ast, Input};
use leo_grammar::Grammar;
use leo_symbol_table::{SymbolTable, SymbolTableError};
@ -27,7 +27,7 @@ const TEST_PROGRAM_PATH: &str = "";
/// A helper struct to test a `SymbolTable`.
pub struct TestSymbolTable {
ast: LeoAst,
ast: Ast,
}
impl TestSymbolTable {
@ -45,7 +45,7 @@ impl TestSymbolTable {
let grammar = Grammar::new(&file_path, &*file_string).unwrap();
// Get Leo syntax tree.
let ast = LeoAst::new(TEST_PROGRAM_PATH, &grammar);
let ast = Ast::new(TEST_PROGRAM_PATH, &grammar);
Self { ast }
}