Mercurial > projects > dil
diff trunk/src/dil/parser/Parser.d @ 650:eb490ba8dba0
Made AttributeDeclaration abstract.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 15 Jan 2008 11:22:55 +0100 |
parents | 68953760d569 |
children | 29cc5bf3ce89 |
line wrap: on
line diff
--- a/trunk/src/dil/parser/Parser.d Tue Jan 15 11:11:03 2008 +0100 +++ b/trunk/src/dil/parser/Parser.d Tue Jan 15 11:22:55 2008 +0100 @@ -829,9 +829,8 @@ else stc |= stc_tmp; - auto tok = token.type; nT(); - decl = new StorageClassDeclaration(stc_tmp, tok, parse()); + decl = new StorageClassDeclaration(stc_tmp, parse()); set(decl, begin); break; case T.Identifier: @@ -1786,9 +1785,8 @@ else stc |= stc_tmp; - auto tok = token.type; nT(); - d = new StorageClassDeclaration(stc_tmp, tok, parse()); + d = new StorageClassDeclaration(stc_tmp, parse()); break; // TODO: allow "scope class", "abstract scope class" in function bodies? //case T.Class: @@ -1822,7 +1820,7 @@ auto init = parseExpression(); auto v = new VariableDeclaration(null, [ident], [init]); set(v, begin.nextNWS); - auto d = new StorageClassDeclaration(StorageClass.Auto, T.Auto, v); + auto d = new StorageClassDeclaration(StorageClass.Auto, v); set(d, begin); variable = new DeclarationStatement(d); set(variable, begin);