def extract_type_name_from_port(oLine):
    """
    Returns the name of a type in port declaration.

    Parameters:

       oLine: (line object)

    Returns: (one element list of strings)
    """
    sLine = oLine.line.split(':')[1]
    sLine = sLine.replace('(', ' ')
    sLine = sLine.replace(')', ' ')
    sLine = sLine.replace(';', ' ')
    try:
        return [sLine.split()[1]]
    except:
        return []
