public void Visit(Id id)
        {
            var v = _staticEnv.GetVariable(id.Name);

            id.Var  = v;
            id.Type = _result = v.Type;
        }
        public override VarInfo GetVariable(string name)
        {
            VarInfo v;

            return(_locals.TryGetValue(name, out v) ? v : _parent.GetVariable(name));
        }