comparison dmd/Scope.d @ 13:427f8aa74d28

On the road to make Phobos compilable
author korDen
date Mon, 12 Apr 2010 16:29:33 +0400
parents 10317f0c89a5
children 460959608115
comparison
equal deleted inserted replaced
12:832f71e6f96c 13:427f8aa74d28
97 // Add top level package as member of this global scope 97 // Add top level package as member of this global scope
98 Dsymbol m = module_; 98 Dsymbol m = module_;
99 while (m.parent !is null) 99 while (m.parent !is null)
100 m = m.parent; 100 m = m.parent;
101 101
102 m.addMember(null, sc.scopesym, 1); 102 m.addMember(null, sc.scopesym, true);
103 m.parent = null; // got changed by addMember() 103 m.parent = null; // got changed by addMember()
104 104
105 // Create the module scope underneath the global scope 105 // Create the module scope underneath the global scope
106 sc = sc.push(module_); 106 sc = sc.push(module_);
107 sc.parent = module_; 107 sc.parent = module_;