// return GoType.EMPTY_ARRAY;
}
private GoType[] resolveVarTypes(GoVarDeclaration parent, GoLiteralIdentifier identifier, int i) {
GoType identifierType = parent.getIdentifierType(identifier);
if (identifierType != null && identifierType instanceof GoTypePsiBacked) {
GoPsiType goPsiType = GoTypeUtils.resolveToFinalType(((GoTypePsiBacked) identifierType).getPsiType());
if (goPsiType instanceof GoPsiTypeFunction) {
return GoUtil.getFuncCallTypes((GoPsiTypeFunction) goPsiType);
}
}
GoExpr[] expressions = parent.getExpressions();
if (expressions.length == 1 && expressions[0] instanceof GoCallOrConvExpression) {
GoType[] types = expressions[0].getType();
if (i < types.length) {
GoType type = types[i];
if (type instanceof GoTypePsiBacked) {
GoPsiType goPsiType = GoTypeUtils.resolveToFinalType(((GoTypePsiBacked) type).getPsiType());
if (goPsiType instanceof GoPsiTypeFunction) {
return GoUtil.getFuncCallTypes((GoPsiTypeFunction) goPsiType);
}