// TODO(brianwilkerson) Report this error.
return null;
}
SimpleIdentifier name = node.getConstructorName();
String superName = name != null ? name.getName() : null;
ConstructorElement element = superType.lookUpConstructor(superName, definingLibrary);
if (element == null) {
if (name != null) {
resolver.reportErrorForNode(
CompileTimeErrorCode.UNDEFINED_CONSTRUCTOR_IN_INITIALIZER,
node,
superType.getDisplayName(),
name);
} else {
resolver.reportErrorForNode(
CompileTimeErrorCode.UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT,
node,
superType.getDisplayName());
}
return null;
} else {
if (element.isFactory()) {
resolver.reportErrorForNode(CompileTimeErrorCode.NON_GENERATIVE_CONSTRUCTOR, node, element);
}
}
if (name != null) {
name.setStaticElement(element);