src/compiler/AST.h
changeset 241 18f3010a358c
parent 238 e9bec7549c28
child 247 7721042bdb67
     1.1 --- a/src/compiler/AST.h	Tue Dec 25 18:13:02 2012 -0800
     1.2 +++ b/src/compiler/AST.h	Wed Dec 26 17:14:12 2012 -0800
     1.3 @@ -193,6 +193,9 @@
     1.4      ExpressionList *dims() const {
     1.5          return dims_;
     1.6      }
     1.7 +    TypeQualifiers quals() const {
     1.8 +        return qual_;
     1.9 +    }
    1.10  };
    1.11  
    1.12  class Parameter : public PoolObject
    1.13 @@ -200,23 +203,23 @@
    1.14      ScopedRoot<String> name_;
    1.15      Expression *type_;
    1.16      bool reference_;
    1.17 -    bool const_;
    1.18      Expression *initializer_;
    1.19      VariableSymbol *sym_;
    1.20      SourcePosition pos_;
    1.21      ExpressionList *dims_;
    1.22 +    TypeQualifiers quals_;
    1.23  
    1.24    public:
    1.25 -    Parameter(Handle<String> name, Expression *type, bool reference, bool isConst,
    1.26 +    Parameter(Handle<String> name, Expression *type, bool reference, TypeQualifiers quals,
    1.27                ExpressionList *dims, Expression *initializer, const SourcePosition &pos)
    1.28        : name_(name),
    1.29          type_(type),
    1.30          reference_(reference),
    1.31 -        const_(isConst),
    1.32          initializer_(initializer),
    1.33          sym_(NULL),
    1.34          pos_(pos),
    1.35 -        dims_(dims)
    1.36 +        dims_(dims),
    1.37 +        quals_(quals)
    1.38      {
    1.39      }
    1.40  
    1.41 @@ -229,8 +232,8 @@
    1.42      bool reference() const {
    1.43          return reference_;
    1.44      }
    1.45 -    bool isConst() const {
    1.46 -        return const_;
    1.47 +    TypeQualifiers quals() const {
    1.48 +        return quals_;
    1.49      }
    1.50      ExpressionList *dims() const {
    1.51          return dims_;