Пример #1
0
        Document GetDocument(CancellationToken token)
        {
            var doc = type.DocumentId;

            if (doc == null)
            {
                var docId = TypeSystemService.GetDocuments(type.FilePath).FirstOrDefault();
                if (docId == null)
                {
                    return(null);
                }
                return(TypeSystemService.GetCodeAnalysisDocument(docId, token));
            }
            return(TypeSystemService.GetCodeAnalysisDocument(type.DocumentId, token));
        }