Skip to content

Commit c0e2744

Browse files
committed
update MPL-2.0 license header format
also minor nuget upgrade
1 parent f96cb5b commit c0e2744

30 files changed

+66
-94
lines changed

CSharpRepl.Services/CSharpRepl.Services.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="3.9.0" />
1414
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="5.0.0" />
1515
<PackageReference Include="NuGet.PackageManagement" Version="5.9.1" />
16-
<PackageReference Include="PrettyPrompt" Version="0.9.2" />
16+
<PackageReference Include="PrettyPrompt" Version="0.9.3" />
1717
</ItemGroup>
1818

1919
</Project>

CSharpRepl.Services/Completion/AutoCompleteService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using Microsoft.CodeAnalysis;
76
using Microsoft.CodeAnalysis.Completion;
87
using Microsoft.CodeAnalysis.QuickInfo;

CSharpRepl.Services/Configuration.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using System.Collections.Generic;
76

87
namespace Sharply.Services
98
{
9+
/// <summary>
10+
/// Configuration from command line parameters
11+
/// </summary>
1012
public class Configuration
1113
{
1214
public HashSet<string> References { get; } = new();
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using System;
76
using System.Collections.Generic;
87

@@ -19,14 +18,7 @@ public EqualityComparerFunc(Func<T, T, bool> comparer, Func<T, int> hash)
1918
_hash = hash;
2019
}
2120

22-
public bool Equals(T x, T y)
23-
{
24-
return _comparer(x, y);
25-
}
26-
27-
public int GetHashCode(T obj)
28-
{
29-
return _hash(obj);
30-
}
21+
public bool Equals(T x, T y) => _comparer(x, y);
22+
public int GetHashCode(T obj) => _hash(obj);
3123
}
3224
}

CSharpRepl.Services/Nuget/ConsoleNugetLogger.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using System;
76
using System.Threading.Tasks;
87
using NuGet.Common;

CSharpRepl.Services/Nuget/NugetMetadataResolver.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using Microsoft.CodeAnalysis;
76
using Microsoft.CodeAnalysis.Scripting;
87
using PrettyPrompt.Consoles;

CSharpRepl.Services/Nuget/NugetPackageInstaller.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using Microsoft.CodeAnalysis;
76
using NuGet.Configuration;
87
using NuGet.Frameworks;

CSharpRepl.Services/Roslyn/PrettyPrinter.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using Microsoft.CodeAnalysis.CSharp.Scripting.Hosting;
76
using Microsoft.CodeAnalysis.Scripting.Hosting;
87
using System;

CSharpRepl.Services/Roslyn/ReferenceAssemblyService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using Microsoft.CodeAnalysis;
76
using System;
87
using System.Collections.Generic;

CSharpRepl.Services/Roslyn/RoslynExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#region License Header
2-
// This Source Code Form is subject to the terms of the Mozilla Public
1+
// This Source Code Form is subject to the terms of the Mozilla Public
32
// License, v. 2.0. If a copy of the MPL was not distributed with this
43
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
#endregion
4+
65
using Microsoft.CodeAnalysis;
76
using System;
87

0 commit comments

Comments
 (0)