modelStack.pop();
((MethodModel)modelStack.peek()).addParam(paramModel);
}
private void generateVisibility(Declaration declaration) {
NamespacedModel namespacedModel = (NamespacedModel)modelStack.peek();
if (namespacedModel instanceof MemberModel) {
((MemberModel)namespacedModel).setStatic(declaration.isStatic());
}
// Public API only, thus either "protected", "public", or custom namespace:
if (declaration instanceof TypedIdeDeclaration) {
Ide namespace = ((TypedIdeDeclaration)declaration).getNamespace();
if (namespace != null) {
namespacedModel.setNamespace(namespace.getQualifiedNameStr());
return;
}
}
namespacedModel.setNamespace(declaration.isProtected() ? NamespacedModel.PROTECTED : NamespacedModel.PUBLIC);
}