* @return All dependency arguments discovered or an empty list
*/
protected List<String> retrieveRequireDependencyArguments(Node node) {
List<String> dependencyArguments = new ArrayList<String>();
Node firstFnArgument = getFnCallArgument(node.getFirstChild(), 0);
if (firstFnArgument != null) {
switch (firstFnArgument.getType()) {
case Token.STRING:
dependencyArguments.add(firstFnArgument.getString());
break;
case Token.ARRAYLIT:
dependencyArguments.addAll(getNodeStringChildren(firstFnArgument));
break;
case Token.OBJECTLIT:
if (firstFnArgument.getNext() != null) {
dependencyArguments.addAll(getNodeStringChildren(firstFnArgument.getNext()));
}
default:
break;
}
}