return value;
}
} else if (element instanceof ExecutableElement) {
ExecutableElement function = (ExecutableElement) element;
if (function.isStatic()) {
return valid(typeProvider.getFunctionType(), new FunctionState(function));
}
} else if (element instanceof ClassElement || element instanceof FunctionTypeAliasElement) {
return valid(typeProvider.getTypeType(), new TypeState(element));
}
// TODO(brianwilkerson) Figure out which error to report.