Mercurial > projects > dil
changeset 111:ab1135da30c3
- Renamed class Argument to Parameter.
author | aziz |
---|---|
date | Sun, 08 Jul 2007 19:37:03 +0000 |
parents | 2fb631daaaae |
children | 004d98df65af |
files | trunk/src/Parser.d |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Parser.d Sun Jul 08 19:22:04 2007 +0000 +++ b/trunk/src/Parser.d Sun Jul 08 19:37:03 2007 +0000 @@ -13,7 +13,7 @@ import Types; -class Argument +class Parameter { StorageClass stc; Type type; @@ -1116,7 +1116,7 @@ return t; } - Argument[] parseParameters() + Parameter[] parseParameters() out(args) { if (args.length > 1) @@ -1136,7 +1136,7 @@ return null; } - Argument[] args; + Parameter[] args; StorageClass stc; while (1) @@ -1149,7 +1149,7 @@ case T.Ref: stc = StorageClass.Ref; nT(); goto default; case T.Lazy: stc = StorageClass.Lazy; nT(); goto default; case T.Ellipses: - args ~= new Argument(StorageClass.Variadic, null, null, null); + args ~= new Parameter(StorageClass.Variadic, null, null, null); break; default: string ident; @@ -1165,12 +1165,12 @@ if (token.type == T.Ellipses) { stc |= StorageClass.Variadic; - args ~= new Argument(stc, type, ident, assignExpr); + args ~= new Parameter(stc, type, ident, assignExpr); nT(); break; } - args ~= new Argument(stc, type, ident, assignExpr); + args ~= new Parameter(stc, type, ident, assignExpr); if (token.type == T.Comma) { nT();