Mercurial > projects > dil
diff trunk/src/dil/Scope.d @ 570:3ebdc510a7fc
Added semantic() to InterfaceDeclaration.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 29 Dec 2007 23:02:46 +0100 |
parents | 86fa0d36da51 |
children | ae8f58a13917 |
line wrap: on
line diff
--- a/trunk/src/dil/Scope.d Sat Dec 29 21:57:33 2007 +0100 +++ b/trunk/src/dil/Scope.d Sat Dec 29 23:02:46 2007 +0100 @@ -50,6 +50,8 @@ } else symbol.insert(var, var.ident); + // Set the current scope symbol as the parent. + var.parent = symbol; } /++ @@ -74,6 +76,11 @@ return sc; } + bool isInterface() + { + return symbol.isInterface; + } + /// Search for the enclosing Class scope. Scope classScope() {