Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/15 14:26:44 (9 years ago)
Author:
jkarder
Message:

#2419: refactored CodeCompletionStrategy and CSharpCodeCompletionStrategy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CodeEditor/3.4/LanguageFeatures/CodeCompletion/CSharp/CSharpCodeCompletionStrategy.cs

    r12012 r12646  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
     
    2625using ICSharpCode.NRefactory.CSharp;
    2726using ICSharpCode.NRefactory.CSharp.Completion;
    28 using ICSharpCode.NRefactory.Editor;
    2927using ICSharpCode.NRefactory.TypeSystem;
    3028
     
    112110
    113111    protected override void DoParseStep() {
    114       var document = (IDocument)codeEditor.Invoke(
    115         (Func<IDocument>)(() => {
    116           var doc = codeEditor.TextEditor.Document;
    117           return new ReadOnlyDocument(doc, doc.FileName);
    118         })
    119       );
    120 
     112      if (document == null) return;
    121113      var unresolvedFile = CSharpParsingHelpers.CreateCSharpUnresolvedFile(document);
    122114      projectContent = projectContent.AddOrUpdateFiles(unresolvedFile);
Note: See TracChangeset for help on using the changeset viewer.