Skip to content

Commit d53a015

Browse files
Fix comment for clear
1 parent f8c2cd8 commit d53a015

File tree

4 files changed

+4
-28
lines changed

4 files changed

+4
-28
lines changed

Build/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
var outputDir = Path.Combine("Immutype", "Bin", configuration);
26-
var defaultVersion = NuGetVersion.Parse(Property.Get("version", "1.0.0-dev", Tools.UnderTeamCity));
26+
var defaultVersion = NuGetVersion.Parse(Props.Get("version", "1.0.0-dev"));
2727
var nuGetVersion = Version.GetNext(new NuGetRestoreSettings(packageId).WithPackageType(NuGetPackageType.Tool), defaultVersion);
2828
var packages = new List<string>();
2929
foreach (var settings in buildSettings)
@@ -62,7 +62,7 @@
6262
var teamCityWriter = GetService<ITeamCityWriter>();
6363
teamCityWriter.PublishArtifact($"{mergedPackage} => .");
6464

65-
var apiKey = Property.Get("apiKey", "");
65+
var apiKey = Props.Get("apiKey", "");
6666
if (!string.IsNullOrWhiteSpace(apiKey) && nuGetVersion.Release != "dev")
6767
{
6868
new DotNetNuGetPush()

Build/Tools.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,4 @@ public static NuGetVersion GetNext(NuGetRestoreSettings settings, NuGetVersion d
7474
: new NuGetVersion(i.Major, i.Minor, i.Patch + 1))
7575
.Max() ?? defaultVersion;
7676
}
77-
}
78-
79-
static class Property
80-
{
81-
public static string Get(string name, string defaultProp, bool showWarning = false)
82-
{
83-
if (Props.TryGetValue(name, out var prop) && !string.IsNullOrWhiteSpace(prop))
84-
{
85-
WriteLine($"{name}: {prop}", Color.Highlighted);
86-
return prop;
87-
}
88-
89-
var message = $"The property \"{name}\" was not defined, the default value \"{defaultProp}\" was used.";
90-
if (showWarning)
91-
{
92-
Warning(message);
93-
}
94-
else
95-
{
96-
Info(message);
97-
}
98-
99-
return defaultProp;
100-
}
10177
}

Immutype/Core/MethodWithFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public IEnumerable<MethodDeclarationSyntax> Create(GenerationContext<TypeDeclara
8484
yield return _commentsGenerator.AddComments(
8585
$"Clear <c>{_nameService.ConvertToName(currentParameter.Identifier.Text)}</c>.",
8686
currentParameter,
87-
$"<c>{_nameService.ConvertToName(currentParameter.Identifier.Text)}</c> to be changed in the copy of the instance.",
87+
"",
8888
_syntaxNodeFactory.CreateExtensionMethod(targetType, $"Clear{name}" + targetDeclaration.TypeParameterList)
8989
.AddParameterListParameters(thisParameter)
9090
.WithConstraintClauses(targetDeclaration.ConstraintClauses)

Immutype/Immutype.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<!-- Should be compatible with .NET 5.0.102+ and Visual Studio 16.8+ -->
3333
<!-- https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md#versioning -->
3434
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.1" PrivateAssets="all" />
35-
<PackageReference Include="Pure.DI" Version="2.1.25">
35+
<PackageReference Include="Pure.DI" Version="2.1.27">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>analyzers</IncludeAssets>
3838
</PackageReference>

0 commit comments

Comments
 (0)