Changeset 11937 for stable/HeuristicLab.CodeEditor/3.4/LanguageFeatures/CodeFolding/CSharp/CSharpCodeFoldingStrategy.cs
- Timestamp:
- 02/06/15 12:44:09 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.CodeEditor/3.4/LanguageFeatures/CodeFolding/CSharp/CSharpCodeFoldingStrategy.cs
r11722 r11937 22 22 using System.Linq; 23 23 using CSharpBinding.Parser; 24 using ICSharpCode.NRefactory.CSharp;25 using ICSharpCode.NRefactory.TypeSystem;26 24 27 25 namespace HeuristicLab.CodeEditor { 28 26 internal class CSharpCodeFoldingStrategy : CodeFoldingStrategy { 29 private IProjectContent projectContent = new CSharpProjectContent(); 30 31 public CSharpCodeFoldingStrategy(CodeEditor codeEditor) 32 : base(codeEditor) { 33 codeEditor.InternalAssembliesLoaded += (sender, args) => { 34 projectContent = projectContent.AddAssemblyReferences(args.Value); 35 }; 36 codeEditor.InternalAssembliesUnloaded += (sender, args) => { 37 projectContent = projectContent.RemoveAssemblyReferences(args.Value); 38 }; 39 } 27 public CSharpCodeFoldingStrategy(CodeEditor codeEditor) : base(codeEditor) { } 40 28 41 29 protected override CodeFoldingResult GetCodeFoldingResult(out int firstErrorOffset) {
Note: See TracChangeset
for help on using the changeset viewer.