# HG changeset patch # User aziz # Date 1185969963 0 # Node ID 93d37f87465894b8176de4ce36f297d96d4919f7 # Parent 829fdb2e2915c593d9f8ef3c8f13ae9c1fe5d2aa - Changed type of pragma identifier to Token*. diff -r 829fdb2e2915 -r 93d37f874658 trunk/src/Declarations.d --- 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; diff -r 829fdb2e2915 -r 93d37f874658 trunk/src/Parser.d --- 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) { diff -r 829fdb2e2915 -r 93d37f874658 trunk/src/Statements.d --- 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;