visit var delarations to set var_symbol
set references to scopes and symbols in AST nodes
add type classes to represent types as a tree