src/compiler/AST.h
changeset 220 5df4a112967d
parent 209 5cbec15fadfe
child 233 bbb498ccb4ac
     1.1 --- a/src/compiler/AST.h	Sun Nov 18 22:18:23 2012 -0800
     1.2 +++ b/src/compiler/AST.h	Mon Nov 19 01:13:44 2012 -0800
     1.3 @@ -205,17 +205,19 @@
     1.4      Expression *initializer_;
     1.5      VariableSymbol *sym_;
     1.6      SourcePosition pos_;
     1.7 +    ExpressionList *dims_;
     1.8  
     1.9    public:
    1.10      Parameter(Handle<String> name, Expression *type, bool reference, bool isConst,
    1.11 -              Expression *initializer, const SourcePosition &pos)
    1.12 +              ExpressionList *dims, Expression *initializer, const SourcePosition &pos)
    1.13        : name_(name),
    1.14          type_(type),
    1.15          reference_(reference),
    1.16          const_(isConst),
    1.17          initializer_(initializer),
    1.18          sym_(NULL),
    1.19 -        pos_(pos)
    1.20 +        pos_(pos),
    1.21 +        dims_(dims)
    1.22      {
    1.23      }
    1.24  
    1.25 @@ -231,6 +233,9 @@
    1.26      bool isConst() const {
    1.27          return const_;
    1.28      }
    1.29 +    ExpressionList *dims() const {
    1.30 +        return dims_;
    1.31 +    }
    1.32      Expression *initializer() const {
    1.33          return initializer_;
    1.34      }