diff trunk/src/Declarations.d @ 264:50cc74026ea8

- Changed some string types to Token*.
author aziz
date Fri, 03 Aug 2007 17:51:02 +0000
parents ebcf7941f1db
children 3a2a0a63c638
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Fri Aug 03 17:08:02 2007 +0000
+++ b/trunk/src/Declarations.d	Fri Aug 03 17:51:02 2007 +0000
@@ -87,11 +87,11 @@
 
 class EnumDeclaration : Declaration
 {
-  string name;
+  Token* name;
   Type baseType;
-  string[] members;
+  Token*[] members;
   Expression[] values;
-  this(string name, Type baseType, string[] members, Expression[] values, bool hasBody)
+  this(Token* name, Type baseType, Token*[] members, Expression[] values, bool hasBody)
   {
     super(hasBody);
     this.name = name;
@@ -103,11 +103,11 @@
 
 class ClassDeclaration : Declaration
 {
-  string name;
+  Token* name;
   TemplateParameters tparams;
   BaseClass[] bases;
   Declaration[] decls;
-  this(string name, TemplateParameters tparams, BaseClass[] bases, Declaration[] decls, bool hasBody)
+  this(Token* name, TemplateParameters tparams, BaseClass[] bases, Declaration[] decls, bool hasBody)
   {
     super(hasBody);
     this.name = name;
@@ -119,11 +119,11 @@
 
 class InterfaceDeclaration : Declaration
 {
-  string name;
+  Token* name;
   TemplateParameters tparams;
   BaseClass[] bases;
   Declaration[] decls;
-  this(string name, TemplateParameters tparams, BaseClass[] bases, Declaration[] decls, bool hasBody)
+  this(Token* name, TemplateParameters tparams, BaseClass[] bases, Declaration[] decls, bool hasBody)
   {
     super(hasBody);
     this.name = name;
@@ -135,10 +135,10 @@
 
 class StructDeclaration : Declaration
 {
-  string name;
+  Token* name;
   TemplateParameters tparams;
   Declaration[] decls;
-  this(string name, TemplateParameters tparams, Declaration[] decls, bool hasBody)
+  this(Token* name, TemplateParameters tparams, Declaration[] decls, bool hasBody)
   {
     super(hasBody);
     this.name = name;
@@ -149,10 +149,10 @@
 
 class UnionDeclaration : Declaration
 {
-  string name;
+  Token* name;
   TemplateParameters tparams;
   Declaration[] decls;
-  this(string name, TemplateParameters tparams, Declaration[] decls, bool hasBody)
+  this(Token* name, TemplateParameters tparams, Declaration[] decls, bool hasBody)
   {
     super(hasBody);
     this.name = name;
@@ -252,19 +252,15 @@
 
 class DebugDeclaration : Declaration
 {
-  int levelSpec;
-  string identSpec;
-  int levelCond;
-  string identCond;
+  Token* spec;
+  Token* cond;
   Declaration[] decls, elseDecls;
 
-  this(int levelSpec, string identSpec, int levelCond, string identCond, Declaration[] decls, Declaration[] elseDecls)
+  this(Token* spec, Token* cond, Declaration[] decls, Declaration[] elseDecls)
   {
     super(decls.length != 0);
-    this.levelSpec = levelSpec;
-    this.identSpec = identSpec;
-    this.levelCond = levelCond;
-    this.identCond = identCond;
+    this.spec = spec;
+    this.cond = cond;
     this.decls = decls;
     this.elseDecls = elseDecls;
   }
@@ -272,19 +268,15 @@
 
 class VersionDeclaration : Declaration
 {
-  int levelSpec;
-  string identSpec;
-  int levelCond;
-  string identCond;
+  Token* spec;
+  Token* cond;
   Declaration[] decls, elseDecls;
 
-  this(int levelSpec, string identSpec, int levelCond, string identCond, Declaration[] decls, Declaration[] elseDecls)
+  this(Token* spec, Token* cond, Declaration[] decls, Declaration[] elseDecls)
   {
     super(decls.length != 0);
-    this.levelSpec = levelSpec;
-    this.identSpec = identSpec;
-    this.levelCond = levelCond;
-    this.identCond = identCond;
+    this.spec = spec;
+    this.cond = cond;
     this.decls = decls;
     this.elseDecls = elseDecls;
   }