comparison trunk/src/dil/Scope.d @ 565:184a8d8bad2e

Added semantic() to StructDeclaration.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 28 Dec 2007 23:22:33 +0100
parents 3c867a683258
children ab9f5020cd02
comparison
equal deleted inserted replaced
564:3c867a683258 565:184a8d8bad2e
49 } 49 }
50 50
51 /++ 51 /++
52 Create a new inner scope. 52 Create a new inner scope.
53 +/ 53 +/
54 Scope push() 54 Scope push(ScopeSymbol symbol)
55 { 55 {
56 auto sc = new Scope(); 56 auto sc = new Scope();
57 sc.parent = this; 57 sc.parent = this;
58 sc.infoMan = this.infoMan; 58 sc.infoMan = this.infoMan;
59 sc.symbol = symbol;
59 return sc; 60 return sc;
60 } 61 }
61 62
62 /++ 63 /++
63 Destroy this scope and return the outer scope. 64 Destroy this scope and return the outer scope.