changeset 245:93d37f874658

- Changed type of pragma identifier to Token*.
author aziz
date Wed, 01 Aug 2007 12:06:03 +0000
parents 829fdb2e2915
children 52f4aa097865
files trunk/src/Declarations.d trunk/src/Parser.d trunk/src/Statements.d
diffstat 3 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Wed Aug 01 12:03:00 2007 +0000
+++ b/trunk/src/Declarations.d	Wed Aug 01 12:06:03 2007 +0000
@@ -386,9 +386,9 @@
 
 class PragmaDeclaration : AttributeDeclaration
 {
-  string ident;
+  Token* ident;
   Expression[] args;
-  this(string ident, Expression[] args, Declaration[] decls)
+  this(Token* ident, Expression[] args, Declaration[] decls)
   {
     super(TOK.Pragma, decls);
     this.ident = ident;
--- a/trunk/src/Parser.d	Wed Aug 01 12:03:00 2007 +0000
+++ b/trunk/src/Parser.d	Wed Aug 01 12:06:03 2007 +0000
@@ -650,12 +650,12 @@
       //     AssignExpression
       //     AssignExpression , ExpressionList
       nT();
-      string ident;
+      Token* ident;
       Expression[] args;
       Declaration[] decls;
 
       require(T.LParen);
-      ident = requireIdentifier();
+      ident = requireId();
 
       if (token.type == T.Comma)
       {
@@ -2161,12 +2161,12 @@
     assert(token.type == T.Pragma);
     nT();
 
-    string ident;
+    Token* ident;
     Expression[] args;
     Statement pragmaBody;
 
     require(T.LParen);
-    ident = requireIdentifier();
+    ident = requireId();
 
     if (token.type == T.Comma)
     {
--- a/trunk/src/Statements.d	Wed Aug 01 12:03:00 2007 +0000
+++ b/trunk/src/Statements.d	Wed Aug 01 12:06:03 2007 +0000
@@ -323,10 +323,10 @@
 
 class PragmaStatement : Statement
 {
-  string ident;
+  Token* ident;
   Expression[] args;
   Statement pragmaBody;
-  this(string ident, Expression[] args, Statement pragmaBody)
+  this(Token* ident, Expression[] args, Statement pragmaBody)
   {
     this.ident = ident;
     this.args = args;