jitcraft/Parser.cpp
changeset 67 b765a6383849
parent 66 cbba1997dc71
child 68 b40b0e18a918
     1.1 --- a/jitcraft/Parser.cpp	Mon Jul 09 21:40:20 2012 -0700
     1.2 +++ b/jitcraft/Parser.cpp	Mon Jul 09 22:25:52 2012 -0700
     1.3 @@ -894,6 +894,7 @@
     1.4          return NULL;
     1.5      if (!match(TOK_RPAREN)) {
     1.6          while (true) {
     1.7 +            bool isConst = match(TOK_CONST);
     1.8              bool ref = match(TOK_AMPERSAND);
     1.9  
    1.10              SourcePosition begin = scanner_.begin();
    1.11 @@ -931,7 +932,7 @@
    1.12                      return NULL;
    1.13              }
    1.14  
    1.15 -            Parameter *parameter = new (pool_) Parameter(arg, tag, ref, postDimensions);
    1.16 +            Parameter *parameter = new (pool_) Parameter(arg, tag, ref, isConst, postDimensions);
    1.17              if (!parameters->append(parameter))
    1.18                  return NULL;
    1.19