Mercurial > projects > dang
diff parser/Action.d @ 158:57b0b4464a0b
Parsing "new", putting it in AST and performs some tests on it. Eg. if the contructor exists and the params matches.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 22 Jul 2008 00:33:58 +0200 |
parents | ee202c72cd30 |
children | 01c2c49775ef |
line wrap: on
line diff
--- a/parser/Action.d Mon Jul 21 22:14:06 2008 +0200 +++ b/parser/Action.d Tue Jul 22 00:33:58 2008 +0200 @@ -386,7 +386,7 @@ /** Called when function calls are encountered. */ - ExprT actOnIndexEpr(ExprT array, ref Token left_bracket, ExprT index, + ExprT actOnIndexExpr(ExprT array, ref Token left_bracket, ExprT index, ref Token right_bracket) { return null; @@ -399,6 +399,14 @@ { return null; } + + /** + New expression. + */ + ExprT actOnNewExpr(ref Id type, ExprT[] a_args, ExprT[] c_args) + { + return null; + } } /**