ConstructorElement redirectedElement = redirectedConstructor.getStaticElement();
if (redirectedElement == null) {
//
// If the element is null, we check for the REDIRECT_TO_MISSING_CONSTRUCTOR case
//
TypeName constructorTypeName = redirectedConstructor.getType();
Type redirectedType = constructorTypeName.getType();
if (redirectedType != null && redirectedType.getElement() != null
&& !redirectedType.isDynamic()) {
//
// Prepare the constructor name
//
String constructorStrName = constructorTypeName.getName().getName();
if (redirectedConstructor.getName() != null) {
constructorStrName += '.' + redirectedConstructor.getName().getName();
}
ErrorCode errorCode = node.getConstKeyword() != null
? CompileTimeErrorCode.REDIRECT_TO_MISSING_CONSTRUCTOR