if(!(name instanceof String))
return functions;
// Functions can lack rtype and documentation. In that case they just have name
if(argList.size() == 1) {
functions.add(new PPFunctionInfo((String) name, false, ""));
return functions;
}
Object hash = argList.get(1);
if(!(hash instanceof Map<?, ?>))
return functions;
Object type = ((Map<?, ?>) hash).get("type");
boolean rValue = "rvalue".equals(type);
Object doc = ((Map<?, ?>) hash).get("doc");
String docString = doc == null
? ""
: doc.toString();
functions.add(new PPFunctionInfo((String) name, rValue, docString));
return functions;
}