示例#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);
            }
        }