Mercurial > projects > dil
diff trunk/src/Statements.d @ 269:a416e09c08ea
- Implemented D 2.0 additions.
- Added keyword __traits, TOK.Traits and TraitsExpression.
- Added ForeachRangeStatement, ConstType and InvariantType.
- Fix: avoid infinite loop by calling nT() to skip storage class.
- Fix: don't call nT() in parseVersionDeclaration.parseIdentOrInt().
author | aziz |
---|---|
date | Sat, 04 Aug 2007 18:59:04 +0000 |
parents | c19b68a4e3db |
children | e8de572e4d01 |
line wrap: on
line diff
--- a/trunk/src/Statements.d Sat Aug 04 13:23:01 2007 +0000 +++ b/trunk/src/Statements.d Sat Aug 04 18:59:04 2007 +0000 @@ -165,6 +165,26 @@ } } +version(D2) +{ +class ForeachRangeStatement : Statement +{ + TOK tok; + Parameters params; + Expression lower, upper; + Statement forBody; + + this(TOK tok, Parameters params, Expression lower, Expression upper, Statement forBody) + { + this.tok = tok; + this.params = params; + this.lower = lower; + this.upper = upper; + this.forBody = forBody; + } +} +} + class SwitchStatement : Statement { Expression condition;