# HG changeset patch # User Aziz K?ksal # Date 1200269548 -3600 # Node ID 7131c07997f969ff9c33d9bf7bfb53478dfd0d04 # Parent fe66cecb6ec9867f8544aca864c1c6a41bf07353 Renamed parseAggregateDeclaration() to parseStructOrUnionDeclaration(). diff -r fe66cecb6ec9 -r 7131c07997f9 trunk/src/dil/parser/Parser.d --- a/trunk/src/dil/parser/Parser.d Mon Jan 14 01:06:17 2008 +0100 +++ b/trunk/src/dil/parser/Parser.d Mon Jan 14 01:12:28 2008 +0100 @@ -313,7 +313,7 @@ decl = parseInterfaceDeclaration(); break; case T.Struct, T.Union: - decl = parseAggregateDeclaration(); + decl = parseStructOrUnionDeclaration(); break; case T.This: decl = parseConstructorDeclaration(); @@ -1142,7 +1142,7 @@ return new InterfaceDeclaration(name, tparams, bases, decls); } - Declaration parseAggregateDeclaration() + Declaration parseStructOrUnionDeclaration() { assert(token.type == T.Struct || token.type == T.Union); TOK tok = token.type; @@ -1477,7 +1477,7 @@ if (token.type == T.Struct) { auto begin2 = token; - structDecl = CastTo!(StructDeclaration)(parseAggregateDeclaration()); + structDecl = parseStructOrUnionDeclaration().to!(StructDeclaration); structDecl.setAlignSize(size); set(structDecl, begin2); } @@ -1620,7 +1620,7 @@ d = parseInterfaceDeclaration(); goto LreturnDeclarationStatement; case T.Struct, T.Union: - d = parseAggregateDeclaration(); + d = parseStructOrUnionDeclaration(); // goto LreturnDeclarationStatement; LreturnDeclarationStatement: set(d, begin);