Mercurial > projects > dil
comparison trunk/src/dil/ast/Expressions.d @ 682:7541c64fc423
Renamed FunctionBody, CatchBody and FinallyBody.
FunctionBody -> FuncBodyStatement,
CatchBody -> CatchStatement,
FinallyBody -> FinallyStatement.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 19 Jan 2008 20:35:45 +0100 |
parents | 6b3e397229c5 |
children | e8c09d13f2a5 |
comparison
equal
deleted
inserted
replaced
681:95a3c28c0f64 | 682:7541c64fc423 |
---|---|
903 | 903 |
904 class FunctionLiteralExpression : Expression | 904 class FunctionLiteralExpression : Expression |
905 { | 905 { |
906 TypeNode returnType; | 906 TypeNode returnType; |
907 Parameters params; | 907 Parameters params; |
908 FunctionBody funcBody; | 908 FuncBodyStatement funcBody; |
909 | 909 |
910 this() | 910 this() |
911 { | 911 { |
912 mixin(set_kind); | 912 mixin(set_kind); |
913 addOptChild(returnType); | 913 addOptChild(returnType); |
914 addOptChild(params); | 914 addOptChild(params); |
915 addChild(funcBody); | 915 addChild(funcBody); |
916 } | 916 } |
917 | 917 |
918 this(TypeNode returnType, Parameters params, FunctionBody funcBody) | 918 this(TypeNode returnType, Parameters params, FuncBodyStatement funcBody) |
919 { | 919 { |
920 this.returnType = returnType; | 920 this.returnType = returnType; |
921 this.params = params; | 921 this.params = params; |
922 this.funcBody = funcBody; | 922 this.funcBody = funcBody; |
923 this(); | 923 this(); |
924 } | 924 } |
925 | 925 |
926 this(FunctionBody funcBody) | 926 this(FuncBodyStatement funcBody) |
927 { | 927 { |
928 this.funcBody = funcBody; | 928 this.funcBody = funcBody; |
929 this(); | 929 this(); |
930 } | 930 } |
931 } | 931 } |