return rv;
}
public Operand buildHash(HashNode hashNode, IRScope m) {
if (hashNode.getListNode() == null || hashNode.getListNode().size() == 0) {
return new Hash(new ArrayList<KeyValuePair>());
}
else {
int i = 0;
Operand key = null;
Operand value = null;
List<KeyValuePair> args = new ArrayList<KeyValuePair>();
for (Node nextNode : hashNode.getListNode().childNodes()) {
Operand v = build(nextNode, m);
if (key == null) {
key = v;
}
else {
args.add(new KeyValuePair(key, v));
key = null;
}
}
return new Hash(args);
}
}