Hi all,

I've been trying to make test_trace_func.rb work again in the
interpreter.  test_block_and_vars fails because the NewlineNode (and
indirectly the line event) has been deleted by this code in
ParserSupport:

// Reduces overhead in interp by not set position every single line we
encounter.
if (!configuration.hasExtraPositionInformation()) {
    while (head instanceof NewlineNode) {
        head = ((NewlineNode) head).getNextNode();
    }
}

I'm a little puzzled by this.  On the one hand, I'm sure there is a
good reason for it.  OTOH, doesn't it mean we'll lose the NewlineNode
for the first line of any block? (which, in turn, seems a little odd).

The test passes if I hardcode
configuration.hasExtraPositionInformation() = true.

Pete

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to