comparison dmd/Scope.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents 460959608115
children e95073e26356
comparison
equal deleted inserted replaced
78:b98fa8a4bf04 79:43073c7c7769
128 //printf("Scope.Scope(enclosing = %p) %p\n", enclosing, this); 128 //printf("Scope.Scope(enclosing = %p) %p\n", enclosing, this);
129 assert(!(enclosing.flags & SCOPE.SCOPEfree)); 129 assert(!(enclosing.flags & SCOPE.SCOPEfree));
130 this.module_ = enclosing.module_; 130 this.module_ = enclosing.module_;
131 this.func = enclosing.func; 131 this.func = enclosing.func;
132 this.parent = enclosing.parent; 132 this.parent = enclosing.parent;
133 this.scopesym = null;
134 this.sd = null;
133 this.sw = enclosing.sw; 135 this.sw = enclosing.sw;
134 this.tf = enclosing.tf; 136 this.tf = enclosing.tf;
135 this.tinst = enclosing.tinst; 137 this.tinst = enclosing.tinst;
136 this.sbreak = enclosing.sbreak; 138 this.sbreak = enclosing.sbreak;
137 this.scontinue = enclosing.scontinue; 139 this.scontinue = enclosing.scontinue;
297 { 299 {
298 //printf("\t\tsc.scopesym = %p\n", sc.scopesym); 300 //printf("\t\tsc.scopesym = %p\n", sc.scopesym);
299 if (!sc.scopesym.symtab) 301 if (!sc.scopesym.symtab)
300 sc.scopesym.symtab = new DsymbolTable(); 302 sc.scopesym.symtab = new DsymbolTable();
301 303
302 return sc.scopesym.symtab.insert(s); 304 return sc.scopesym.symtabInsert(s);
303 } 305 }
304 } 306 }
305 307
306 assert(false); 308 assert(false);
307 } 309 }