/**
* This variable declaration do not extend AbstractVariableDeclaration because
- * it could take Expression as key
+ * it could take Expression as key.
* @author Matthieu Casanova
*/
public class ArrayVariableDeclaration extends Expression {
errorEnd = jj_input_stream.getPosition();
{if (true) throw e;}
}
- nbNodes = nodePtr-startIndex;
+ nbNodes = nodePtr-startIndex - 1;
blockNodes = new AstNode[nbNodes];
System.arraycopy(nodes,startIndex,blockNodes,0,nbNodes);
{if (true) return new HTMLBlock(nodes);}
throw e;
}
{
- nbNodes = nodePtr-startIndex;
+ nbNodes = nodePtr-startIndex - 1;
blockNodes = new AstNode[nbNodes];
System.arraycopy(nodes,startIndex,blockNodes,0,nbNodes);
return new HTMLBlock(nodes);}