Beispiel #1
0
        Cil.Document GetDocument(ISymbolDocument document)
        {
            Cil.Document doc = m_documents [document.URL] as Cil.Document;
            if (doc != null)
            {
                return(doc);
            }

            doc                = new Cil.Document(document.URL);
            doc.Type           = document.DocumentType;
            doc.Language       = document.Language;
            doc.LanguageVendor = document.LanguageVendor;

            m_documents [doc.Url] = doc;
            return(doc);
        }
Beispiel #2
0
        Cil.Document GetDocument(ISymbolDocument document)
        {
            Cil.Document doc = m_documents [document.URL] as Cil.Document;
            if (doc != null)
            {
                return(doc);
            }

            doc      = new Cil.Document(document.URL);
            doc.Type = (Cil.DocumentType)Cil.GuidAttribute.GetValueFromGuid(
                document.DocumentType, typeof(Cil.DocumentType));
            doc.Language = (Cil.DocumentLanguage)Cil.GuidAttribute.GetValueFromGuid(
                document.Language, typeof(Cil.DocumentLanguage));
            doc.LanguageVendor = (Cil.DocumentLanguageVendor)Cil.GuidAttribute.GetValueFromGuid(
                document.LanguageVendor, typeof(Cil.DocumentLanguageVendor));

            m_documents [doc.Url] = doc;
            return(doc);
        }
Beispiel #3
0
        Cil.Document GetDocument(ISymbolDocument document)
        {
            Cil.Document doc = m_documents [document.URL] as Cil.Document;
            if (doc != null)
                return doc;

            doc = new Cil.Document (document.URL);
            doc.Type = document.DocumentType;
            doc.Language = document.Language;
            doc.LanguageVendor = document.LanguageVendor;

            m_documents [doc.Url] = doc;
            return doc;
        }