Add type alias for name scope data structure

This commit is contained in:
greg 2019-09-25 03:26:31 -07:00
parent 1fc028c9fc
commit ae65455374
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ use crate::ast::*;
use crate::util::ScopeStack;
type FQSNPrefix = Vec<ScopeSegment>;
type NameScopeStack<'t> = ScopeStack<'t, Rc<String>, FQSNPrefix>;
pub struct ScopeResolver<'a> {
symbol_table: &'a mut SymbolTable,