diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-07-21 10:51:49 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-07-22 14:27:59 +0300 |
commit | 0559b083a7c9be3e0b107a6b7b32fb9254847789 (patch) | |
tree | 4a2d665dc3185305d3f483f6b7dab698cb1343b1 /main/src/core/MonoDevelop.Core | |
parent | f3d2df0d337dbd080f37606a2900d496ab608e7d (diff) |
[Core] Change signature of the path being passed to ReadOnlySpan
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs index 81594bc331..7c318c25c1 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs @@ -862,7 +862,7 @@ namespace MonoDevelop.Projects.MSBuild return CreateEvaluatedItem (context, pinfo, project, sourceItem, include, file, recursiveDir); }; MSBuildProject rootProject = pinfo.GetRootMSBuildProject (); - return ExpandWildcardFilePath (rootProject, rootProject.BaseDirectory, FilePath.Null, false, subpath.AsSpan (), func, directoryExcludeRegex); + return ExpandWildcardFilePath (rootProject, rootProject.BaseDirectory, FilePath.Null, false, subpath, func, directoryExcludeRegex); } static IEnumerable<string> GetIncludesForWildcardFilePath (MSBuildProject project, string path, Regex directoryExcludeRegex = null) @@ -870,7 +870,7 @@ namespace MonoDevelop.Projects.MSBuild var subpath = SplitWildcardFilePath (path); WildcardExpansionFunc<string> func = (file, include, recursiveDir) => include; - return ExpandWildcardFilePath (project, project.BaseDirectory, FilePath.Null, false, subpath.AsSpan (), func, directoryExcludeRegex); + return ExpandWildcardFilePath (project, project.BaseDirectory, FilePath.Null, false, subpath, func, directoryExcludeRegex); } static string[] SplitWildcardFilePath (string path) @@ -883,7 +883,7 @@ namespace MonoDevelop.Projects.MSBuild delegate T WildcardExpansionFunc<T> (string filePath, string include, string recursiveDir); - static IEnumerable<T> ExpandWildcardFilePath<T> (MSBuildProject project, FilePath basePath, FilePath baseRecursiveDir, bool recursive, Span<string> filePath, WildcardExpansionFunc<T> func, Regex directoryExcludeRegex) + static IEnumerable<T> ExpandWildcardFilePath<T> (MSBuildProject project, FilePath basePath, FilePath baseRecursiveDir, bool recursive, in ReadOnlySpan<string> filePath, WildcardExpansionFunc<T> func, Regex directoryExcludeRegex) { var res = Enumerable.Empty<T> (); |