Hi, I've found that the getValue() method for NumberLiteral returns the original token but without the "0x" String. I mean, if the original javascript code is:
var i = 0xA wheh I call getValue() in the corresponding NumberLiteral node I got the value "A" (although the getValue() method is working right and it returns 10.0). Is this a bug? or this is the expected behavior? If so, I have a little problem as I'm trying to transform Rhino's AST into our own AST implementation and we have a HexIntegerLiteral node. It's not clear to me how can I distinguish the exact nature of the int literal. Cheers, Iván _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
