Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vobradovich committed Nov 13, 2024
1 parent f077f5c commit 9d3f378
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 28 deletions.
2 changes: 1 addition & 1 deletion net/rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion net/rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.6.3"
version = "0.0.1"
authors = ["Gear Technologies"]
edition = "2021"
license = "GPL-3.0"
Expand Down
10 changes: 5 additions & 5 deletions net/src/Sails.ClientGenerator/Loader/LibraryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Sails.ClientGenerator.Loader;
/// <summary>
/// Exposes functionality for loading native libraries and function pointers.
/// </summary>
public abstract class LibraryLoader
internal abstract class LibraryLoader
{
/// <summary>
/// Loads a native library by name and returns an operating system handle to it.
Expand All @@ -16,9 +16,9 @@ public abstract class LibraryLoader
/// <returns>The operating system handle for the shared library.</returns>
/// <exception cref="FileNotFoundException"></exception>
/// <exception cref="ArgumentException"></exception>
public IntPtr LoadNativeLibraryByPath(params string[] names)
internal IntPtr LoadNativeLibraryByPath(params string[] names)
{
foreach (var loadTarget in names!)
foreach (var loadTarget in names)
{
if (File.Exists(loadTarget))
{
Expand All @@ -38,7 +38,7 @@ public IntPtr LoadNativeLibraryByPath(params string[] names)
/// <param name="handle">The operating system handle of the opened shared library.</param>
/// <param name="functionName">The name of the exported function to load.</param>
/// <returns>A pointer to the loaded function.</returns>
public IntPtr LoadFunctionPointer(IntPtr handle, string functionName)
internal IntPtr LoadFunctionPointer(IntPtr handle, string functionName)
{
if (string.IsNullOrEmpty(functionName))
{
Expand All @@ -52,7 +52,7 @@ public IntPtr LoadFunctionPointer(IntPtr handle, string functionName)
/// Frees the library represented by the given operating system handle.
/// </summary>
/// <param name="handle">The handle of the open shared library.</param>
public void FreeNativeLibrary(IntPtr handle)
internal void FreeNativeLibrary(IntPtr handle)
{
if (handle == IntPtr.Zero)
{
Expand Down
1 change: 0 additions & 1 deletion net/tests/Sails.Client.Tests/Sails.Client.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>false</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand Down
12 changes: 12 additions & 0 deletions net/tests/Sails.ClientGenerator.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
global using System.Collections.Immutable;
global using System.IO;
global using System.Linq;
global using System.Runtime.CompilerServices;
global using System.Threading;
global using System.Threading.Tasks;
global using Microsoft.CodeAnalysis;
global using Microsoft.CodeAnalysis.CSharp;
global using Microsoft.CodeAnalysis.Text;
global using VerifyTests;
global using VerifyXunit;
global using Xunit;
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;

namespace Sails.ClientGenerator.Tests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ImplicitUsings>false</ImplicitUsings>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<Content Include="idl\demo.idl" />
<Content Include="idl\demo.idl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
Expand All @@ -26,14 +27,4 @@
<ProjectReference Include="..\..\src\Sails.ClientGenerator\Sails.ClientGenerator.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup>
<Content Update="idl\demo.idl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;

namespace Sails.ClientGenerator.Tests;

public class SailsClientGeneratorTests
Expand Down

0 comments on commit 9d3f378

Please sign in to comment.