Пример #1
0
        public override void VisitIdentifier(Identifier n)
        {
            if (_mgr.HasSymbol(n.Id))
            {
                var d = _mgr.GetType(n.Id);
                n.Descriptor   = d;
                n.InternalType = d.Type;

                _lastSeenType = d.Type;
            }
            else
            {
                ReportError(n.Location, "Identifier '{0}' has not been declared.", n.Id);
            }
        }