Changeset 2401


Ignore:
Timestamp:
Sep 26, 2012, 6:59:56 PM (7 years ago)
Author:
ksherdy
Message:

Fixed node token value updating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/pablo/src/compiler/visitors/ASTHelpers.java

    r2399 r2401  
    157157        public static IntegerConstantNode makeIntegerConstantNode(int n, Token locationToken) {
    158158                Token newToken = IntConstantToken.makeArtifical(LexicalType.INTEGER_CONST, locationToken.getLocation(), n);
    159                 return new IntegerConstantNode(newToken);
     159                IntegerConstantNode integerConstantNode = new IntegerConstantNode(newToken);
     160                integerConstantNode.setValue(n);
     161        return integerConstantNode;
    160162        }
    161163        /** Makes a new StringConstantNode with the given string and the TextLocation taken from token.
Note: See TracChangeset for help on using the changeset viewer.