}
flowPush(function);
flowPush(function.getChildStatement());
} 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);
}
method.setParentStatement(flowPeek());
if (target.lookupLocalDeclaration(name) == null) {
parent.declare(method);
if (context != null) {
context.declare(name, method);
}
} else {
error(location, "Entity '" + name + "' is already declared");
}
flowPush(method);
flowPush(method.getChildStatement());
}
jj_consume_token(BEGIN);
if (is_constructor) {
ConstructorInvoke();