comparison trunk/src/Parser.d @ 149:37e2e0d06013

- Removed ProtectionDeclaration. - Using a general class AttributeDeclaration for all attributes.
author aziz
date Thu, 12 Jul 2007 14:55:00 +0000
parents e3e4d3314166
children 753bc07bf3a0
comparison
equal deleted inserted replaced
148:e3e4d3314166 149:37e2e0d06013
290 else 290 else
291 decls = parseDeclarationsBlock(); 291 decls = parseDeclarationsBlock();
292 292
293 decl = new PragmaDeclaration(ident, args, decls); 293 decl = new PragmaDeclaration(ident, args, decls);
294 break; 294 break;
295 // Protection attributes
295 case T.Private: 296 case T.Private:
296 case T.Package: 297 case T.Package:
297 case T.Protected: 298 case T.Protected:
298 case T.Public: 299 case T.Public:
299 case T.Export: 300 case T.Export:
300 decl = new ProtectionDeclaration(token.type, parseDeclarationsBlock()); 301 // StorageClass attributes
301 break;
302 case T.Override: 302 case T.Override:
303 case T.Deprecated: 303 case T.Deprecated:
304 case T.Abstract: 304 case T.Abstract:
305 case T.Static: 305 case T.Static:
306 case T.Final: 306 case T.Final:
307 case T.Const: 307 case T.Const:
308 case T.Auto: 308 case T.Auto:
309 case T.Scope: 309 case T.Scope:
310 decl = new AttributeDeclaration(token.type, parseDeclarationsBlock());
311 break;
310 default: 312 default:
311 assert(0); 313 assert(0);
312 } 314 }
313 return decl; 315 return decl;
314 } 316 }