Mercurial > projects > dil
diff trunk/src/Types.d @ 130:0467f01ed524
- Fix: parameters can have optional identifier.
- Added code for parsing delegates of type ( ArgumentList ) FunctionBody.
- Added class FunctionType.
- Added class FunctionLiteralExpression.
author | aziz |
---|---|
date | Tue, 10 Jul 2007 16:49:01 +0000 |
parents | 79857de26e86 |
children | a31aa0d6dd5e |
line wrap: on
line diff
--- a/trunk/src/Types.d Mon Jul 09 22:08:05 2007 +0000 +++ b/trunk/src/Types.d Tue Jul 10 16:49:01 2007 +0000 @@ -167,3 +167,15 @@ this.type = type; } } + +class FunctionType : Type +{ + Type returnType; + Parameters parameters; + this(Type returnType, Parameters parameters) + { + super(TOK.Invalid, null); + this.returnType = returnType; + this.parameters = parameters; + } +}