while (true) {
int i = 0;
for (Node childNode = node.getFirstChild(); childNode != null; childNode = childNode
.getNext()) {
Node valueNode = childNode.getFirstChild();
IdentifierExpression id = (IdentifierExpression) addExpression(
childNode, root, scope);
if (valueNode != null) {
IExpression value = addExpression(valueNode, root, scope);
BinaryExpression assignment = new BinaryExpression(node.getLineno(),
Token.ASSIGN, id, value);
assignment.setParent(this);
if (value instanceof NumericLiteral
&& ((NumericLiteral) value).getValue() == 0
&& id.getName().getString().length() == 1) {
params.add(i++, assignment);
id.getName().inc(10000000 - i * 10000);
} else {
params.add(assignment);
}
} else {
params.add(id);
}
if (isFirst) {
id.getName().inc(1000);
isFirst = false;
}
}
node = node.getNext();