Skip to content

Commit

Permalink
remove public
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Feb 23, 2022
1 parent a72760e commit a0f38fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/UnitGenerator/CodeTemplate.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace UnitGenerator
Expand Down Expand Up @@ -51,7 +46,7 @@ public virtual string TransformText()
}
this.Write(" [System.ComponentModel.TypeConverter(typeof(");
this.Write(this.ToStringHelper.ToStringWithCulture(Name));
this.Write("TypeConverter))]\r\n public readonly partial struct ");
this.Write("TypeConverter))]\r\n readonly partial struct ");
this.Write(this.ToStringHelper.ToStringWithCulture(Name));
this.Write(" : IEquatable<");
this.Write(this.ToStringHelper.ToStringWithCulture(Name));
Expand Down
2 changes: 1 addition & 1 deletion src/UnitGenerator/CodeTemplate.tt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace <#= Namespace #>
[MessagePackFormatter(typeof(<#= Name #>MessagePackFormatter))]
<# } #>
[System.ComponentModel.TypeConverter(typeof(<#= Name #>TypeConverter))]
public readonly partial struct <#= Name #> : IEquatable<<#= Name #>> <#= HasFlag(UnitGenerateOptions.Comparable) ? $", IComparable<{Name}>" : "" #>
readonly partial struct <#= Name #> : IEquatable<<#= Name #>> <#= HasFlag(UnitGenerateOptions.Comparable) ? $", IComparable<{Name}>" : "" #>
{
readonly <#= Type #> value;

Expand Down

0 comments on commit a0f38fc

Please sign in to comment.