Merge pull request #49 from Susko3/fix-namespaces

Fix namespaces (from `SDL3` to `SDL`)
This commit is contained in:
Dan Balasescu 2024-04-20 14:06:02 +09:00 committed by GitHub
commit 02cedd7cb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 12 additions and 16 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net8.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<RootNamespace>SDL3.Android</RootNamespace>
<RootNamespace>SDL.Android</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

View File

@ -3,7 +3,7 @@
using System;
namespace SDL3.SourceGeneration
namespace SDL.SourceGeneration
{
[Flags]
public enum Changes

View File

@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration
namespace SDL.SourceGeneration
{
[Generator]
public class FriendlyOverloadGenerator : ISourceGenerator

View File

@ -3,7 +3,7 @@
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration
namespace SDL.SourceGeneration
{
public record GeneratedMethod
{

View File

@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration
namespace SDL.SourceGeneration
{
public static class Helper
{

View File

@ -9,8 +9,7 @@
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IsRoslynComponent>true</IsRoslynComponent>
<RootNamespace>SDL3.SourceGeneration</RootNamespace>
<PackageId>SDL3.SourceGeneration</PackageId>
<RootNamespace>SDL.SourceGeneration</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration
namespace SDL.SourceGeneration
{
public class UnfriendlyMethodFinder : ISyntaxReceiver
{

View File

@ -3,10 +3,9 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using SDL;
using static SDL.SDL3;
namespace SDL3.Tests
namespace SDL.Tests
{
public sealed unsafe class MyWindow : IDisposable
{

View File

@ -5,7 +5,7 @@
using System.Runtime.InteropServices;
namespace SDL3.Tests
namespace SDL.Tests
{
/// <summary>
/// Wrapper on <see cref="GCHandle" /> that supports the <see cref="IDisposable" /> pattern.

View File

@ -3,10 +3,9 @@
using System.Diagnostics;
using System.Text;
using SDL;
using static SDL.SDL3;
namespace SDL3.Tests
namespace SDL.Tests
{
public static class Program
{

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>SDL3.Tests</RootNamespace>
<RootNamespace>SDL.Tests</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View File

@ -2,9 +2,8 @@
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using SDL;
namespace SDL3.Tests
namespace SDL.Tests
{
[TestFixture]
public class TestUtf8String