Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2019-06-27 10:34:58 +0300
committerGitHub <noreply@github.com>2019-06-27 10:34:58 +0300
commita8cc97b50f1fece90690febd43761c157e773fe8 (patch)
tree490c086ba5d2bd39f9aa650b8cc8c672ebcbfcc7 /main/src
parent37e7bedb14ea06790e6002dfc22ce889229cb006 (diff)
parent4aeb87b9698b982b1da6289466619b72000350c7 (diff)
Merge pull request #7901 from mono/type-system-perf-tests
[Perf Tests] Add type system perf test
Diffstat (limited to 'main/src')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs
index d98cc71894..b3f0717fdb 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs
@@ -331,7 +331,7 @@ namespace MonoDevelop.Projects
var oldLink = link;
link = value;
- OnVirtualPathChanged (oldLink, link);
+ VirtualPathChanged?.Invoke (this, new ProjectFileVirtualPathChangedEventArgs (this, oldLink, link));
OnChanged ("Link");
}
}
@@ -479,7 +479,7 @@ namespace MonoDevelop.Projects
base.OnProjectSet ();
if (Project != null) {
base.Include = Include;
- OnVirtualPathChanged (FilePath.Null, ProjectVirtualPath);
+ VirtualPathChanged?.Invoke (this, new ProjectFileVirtualPathChangedEventArgs (this, FilePath.Null, ProjectVirtualPath));
}
}
@@ -507,14 +507,6 @@ namespace MonoDevelop.Projects
internal event EventHandler<ProjectFileVirtualPathChangedEventArgs> VirtualPathChanged;
- void OnVirtualPathChanged (FilePath oldVirtualPath, FilePath newVirtualPath)
- {
- var handler = VirtualPathChanged;
-
- if (handler != null)
- handler (this, new ProjectFileVirtualPathChangedEventArgs (this, oldVirtualPath, newVirtualPath));
- }
-
internal event EventHandler<ProjectFilePathChangedEventArgs> PathChanged;
void OnPathChanged (FilePath oldPath, FilePath newPath, FilePath oldVirtualPath, FilePath newVirtualPath)