} else {
MethodStatement method;
if ((context == null) && name.equals(parent.getName())) {
is_constructor = true;
method = new ConstructorStatement(location, parent, is_synchronized, name, document, parameters);
if (parent.getConstructor() != null) {
error(location, "Constructor is already declared for class '"+parent+"'");
}
} else {
method = new MethodStatement(location, parent, context, is_synchronized, name, document, parameters);