diff trunk/src/Declarations.d @ 192:5c898f80b436

- Started implementation of parseDeclaration(). - Added classes FunctionDeclaration and FunctionBody. - Implemented parseFunctionBody(). - Simplified parseDeclaratorSuffix().
author aziz
date Sun, 15 Jul 2007 18:04:03 +0000
parents 3ce110cefbc5
children b3604b237292
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Sat Jul 14 20:56:05 2007 +0000
+++ b/trunk/src/Declarations.d	Sun Jul 15 18:04:03 2007 +0000
@@ -183,6 +183,21 @@
   }
 }
 
+class FunctionDeclaration : Declaration
+{
+  string funcName;
+  Type funcType;
+  TemplateParameter[] tparams;
+  FunctionBody funcBody;
+  this(string funcName, Type funcType, TemplateParameter[] tparams, FunctionBody funcBody)
+  {
+    super(hasBody);
+    this.funcName = funcName;
+    this.funcType = funcType;
+    this.funcBody = funcBody;
+  }
+}
+
 class InvariantDeclaration : Declaration
 {
   Statements statements;