示例#1
0
 public LocalScope Copy()
 {
     LocalScope Ret = new LocalScope();
     Ret.ScopeVariables = this.ScopeVariables.ToList();
     Ret.OnDateType = this.OnDateType.ToDictionary(x => x.Key, x => x.Value);
     Ret.Parent = this.Parent;
     return Ret;
 }
示例#2
0
        public LocalScope Copy()
        {
            LocalScope Ret = new LocalScope();

            Ret.ScopeVariables = this.ScopeVariables.ToList();
            Ret.OnDateType     = this.OnDateType.ToDictionary(x => x.Key, x => x.Value);
            Ret.Parent         = this.Parent;
            return(Ret);
        }
示例#3
0
 public BlockScope(LocalScope Parent)
     : base(Parent)
 {
     Save            = Parent.OnDateType.ToDictionary(x => x.Key, x => x.Value.ToList());
     this.OnDateType = Parent.OnDateType;
 }
 public BlockScope(LocalScope Parent)
     : base(Parent)
 {
     Save = Parent.OnDateType.ToDictionary(x => x.Key, x => x.Value.ToList());
     this.OnDateType = Parent.OnDateType;
 }