Mercurial > projects > dil
diff trunk/src/dil/Symbols.d @ 567:ab9f5020cd02
Added 'is-methods' to class Symbol.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 29 Dec 2007 14:44:09 +0100 |
parents | 184a8d8bad2e |
children | c8861b452eb3 |
line wrap: on
line diff
--- a/trunk/src/dil/Symbols.d Fri Dec 28 23:24:08 2007 +0100 +++ b/trunk/src/dil/Symbols.d Sat Dec 29 14:44:09 2007 +0100 @@ -42,10 +42,10 @@ override void insert(Symbol s, Identifier* ident) { - if (s.sid == SYM.Variable) + if (s.isVariable) // Append variable to fields. fields ~= cast(Variable)cast(void*)s; - else if (s.sid == SYM.Function) + else if (s.isFunction) // Append function to funcs. funcs ~= cast(Function)cast(void*)s; super.insert(s, ident);