Mercurial > projects > dil
changeset 259:8118da6fee44
- Moved nT() below statement where an attribute class is constructed.
- Skip token after creating UndefinedType.
author | aziz |
---|---|
date | Fri, 03 Aug 2007 08:04:03 +0000 |
parents | 112a57f433f2 |
children | b83180748ae6 |
files | trunk/src/Parser.d |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Parser.d Wed Aug 01 20:55:04 2007 +0000 +++ b/trunk/src/Parser.d Fri Aug 03 08:04:03 2007 +0000 @@ -604,8 +604,8 @@ goto Lcommon; Lcommon: addStorageClass(); + decl = new AttributeDeclaration(token.type, parse()); nT(); - decl = new AttributeDeclaration(token.type, parse()); break; case T.Identifier: // This could be a normal Declaration or an AutoDeclaration @@ -1787,8 +1787,8 @@ goto Lcommon; Lcommon: addStorageClass(); + s = new AttributeStatement(token.type, parse()); nT(); - s = new AttributeStatement(token.type, parse()); break; // TODO: allow "scope class", "abstract scope class" in function bodies? //case T.Class: @@ -3136,6 +3136,7 @@ // TODO: issue error msg. error(MID.ExpectedButFound, "BasicType", token.srcText); t = new UndefinedType(); + nT(); set(t, begin); } return t;