diff trunk/src/dil/Declarations.d @ 492:9c208925a3d4

Added module ImportParser and new stuff from DMD2.008. Moved ImportParser from module Parser to its own module. Added a few methods from class Parser and simplified them. Now protection attributes are taken into consideration as well. Added class TemplateThisParameter. Adapted TypeofType so that typeof(return) can be recognized.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 06 Dec 2007 22:19:55 +0100
parents 47be6bfe39cd
children 9a7ca8c56e59
line wrap: on
line diff
--- a/trunk/src/dil/Declarations.d	Tue Dec 04 23:33:13 2007 +0100
+++ b/trunk/src/dil/Declarations.d	Thu Dec 06 22:19:55 2007 +0100
@@ -349,7 +349,8 @@
   TemplateParameters tparams;
   Parameters params;
   FunctionBody funcBody;
-  this(Type returnType, Token* funcName, TemplateParameters tparams, Parameters params, FunctionBody funcBody)
+  this(Type returnType, Token* funcName, TemplateParameters tparams,
+       Parameters params, FunctionBody funcBody, StorageClass stc)
   {
     super.hasBody = funcBody.funcBody !is null;
     mixin(set_kind);
@@ -358,6 +359,7 @@
     addChild(params);
     addChild(funcBody);
 
+    this.stc = stc;
     this.returnType = returnType;
     this.funcName = funcName;
     this.tparams = tparams;