Skip to content

Commit 260fbef

Browse files
committed
Make internal
1 parent 8b2f329 commit 260fbef

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

src/LibStored.Net.Generator/LibStored.Net.Generator.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@
3333
<PackageScribanIncludeSource>true</PackageScribanIncludeSource>
3434
</PropertyGroup>
3535

36+
<ItemGroup>
37+
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
38+
</ItemGroup>
39+
3640
</Project>

src/LibStored.Net.Generator/Models/TemplateFunctions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace LibStored.Net.Generator.Models;
22

3-
public static class TemplateFunctions
3+
internal static class TemplateFunctions
44
{
55
public static string CsTypes(string type) => type switch
66
{

src/LibStored.Net.Generator/Models/TemplateObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace LibStored.Net.Generator.Models;
22

3-
public class TemplateObject
3+
internal class TemplateObject
44
{
55
public string Name { get; set; } = "";
66
public string Hash { get; set; } = "";

src/LibStored.Net.Generator/Models/TemplateVariable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace LibStored.Net.Generator.Models;
22

3-
public class TemplateVariable
3+
internal class TemplateVariable
44
{
55
public string Type { get; set; } = string.Empty;
66
public string Cname { get; set; } = string.Empty;

src/LibStored.Net.Generator/ScribanGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace LibStored.Net.Generator;
88

9-
public static class ScribanGenerator
9+
internal static class ScribanGenerator
1010
{
1111
private const string StoreTemplate =
1212
"""
@@ -109,7 +109,7 @@ public override void Changed(int offset)
109109
110110
""";
111111

112-
public static string GenerateSource(StoreModel model, string filename, string version)
112+
internal static string GenerateSource(StoreModel model, string filename, string version)
113113
{
114114
Template template = Template.Parse(StoreTemplate);
115115
if (template.HasErrors)

src/LibStored.Net.Generator/StoreModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace LibStored.Net.Generator;
44

5-
public class StoreModel
5+
internal class StoreModel
66
{
77
[JsonRequired]
88
public string Name { get; set; } = string.Empty;
@@ -14,7 +14,7 @@ public class StoreModel
1414
public Variables[] Variables { get; set; } = [];
1515
}
1616

17-
public class Functions
17+
internal class Functions
1818
{
1919
public string Name { get; set; } = string.Empty;
2020
public string Cname { get; set; } = string.Empty;
@@ -23,7 +23,7 @@ public class Functions
2323
public int Function { get; set; }
2424
}
2525

26-
public class Variables
26+
internal class Variables
2727
{
2828
[JsonRequired]
2929
public string Name { get; set; } = string.Empty;

0 commit comments

Comments
 (0)