private void addNodeToModule(DefnNode defn, Module module, Properties docNodes) {
List<Argument> args = new ArrayList<Argument>();
ArgsNode argsNode = defn.getArgsNode();
if (argsNode.getBlock() != null)
return;
ListNode pre = argsNode.getPre();
if (pre != null) {
for (int i = 0; i < pre.size(); i++) {
Node node = pre.get(i);
if (node instanceof INameNode)
args.add(new Argument(((INameNode) node).getName()));
else
return;
}
}
ListNode optional = argsNode.getOptional();
if (optional != null) {
for (int i = 0; i < optional.size(); i++) {
Node node = optional.get(i);
if (!(node instanceof LocalAsgnNode))
return;
LocalAsgnNode lan = (LocalAsgnNode) node;
Node valueNode = lan.getValueNode();
if ((valueNode instanceof StrNode))