import { UI5Type } from "@ui5-language-assistant/semantic-model-types" ; import { ui5NodeToFQN } from "../api" ; export function typeToString ( type ) { switch ( type ?. kind ) { case "UI5Class" : case "UI5Enum" : case "UI5Interface" : case "UI5Namespace" : case "UI5Typedef" : return ui5NodeToFQN ( type ) ; case "ArrayType" : return typeToString ( type . type ) + "[]" ; case "PrimitiveType" : case "UnresolvedType" : return type . name ; default : return "any" ; } }