예제 #1
0
        public override EntityLocation Put(string key)
        {
            EntityLocation entityLocation = this.OuterSymbolTable.Put(key);

            if (entityLocation.Nest >= 0)
            {
                entityLocation.Nest++;
            }

            return(entityLocation);
        }
예제 #2
0
        public virtual EntityLocation Put(string key)
        {
            EntityLocation entityLocation = this.GetEntityLocation(key, 0);

            if (entityLocation == null)
            {
                return(new EntityLocation(0, this.Add(key)));
            }
            else
            {
                return(entityLocation);
            }
        }