result = type.getQualifiedName();
String qname = type.getQualifiedName(); if (isDefined(qname)) { result = qname; }
    public String resolve(TypeNd type) {        String result = null;        if (type.isQualified()) {            result = type.getQualifiedName();        } else {            FileNd file = type.getFile();            Collection imps = file.getImports();            ArrayList qnames = new ArrayList();            // First check imports            for (Iterator it = imps.iterator(); it.hasNext(); ) {                ImportNd imp = (ImportNd) it.next();                String qname = imp.qualify(type);                if (qname != null && isDefined(qname)) {                    qnames.add(qname);                }            }            if (qnames.size() == 0) {                String[] special = new String[] {                    file.getModel().getName() + "." + type.getName(),                    "global." + type.getName()                };                for (int i = 0; i < special.length; i++) {                    if (isDefined(special[i])) {                        result = special[i];                        break;                    }                }            } else if (qnames.size() > 1) {                m_report.fatal(type, "ambiguous symbol, resolves to: " +                               qnames);                return null;            } else {                result = (String) qnames.get(0);            }        }        if (result == null) {            m_report.fatal(type, "unresolved symbol: " +                           type.getName());        } else {            m_resolutions.put(type, result);        }        return result;    }