Skip to content

Commit 8aa41b3

Browse files
fixed serialisable keyword
1 parent f27f8b5 commit 8aa41b3

File tree

9 files changed

+6
-6
lines changed

9 files changed

+6
-6
lines changed

ReCT/CodeAnalysis/Emit/Emitter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public ImmutableArray<Diagnostic> Emit(BoundProgram program, string outputPath)
531531
foreach (var _class in program.Classes)
532532
{
533533
if (!_class.Key.IsAbstract) continue;
534-
var classDefinition = new TypeDefinition(program.Namespace, _class.Key.Name, (_class.Key.IsAbstract ? TypeAttributes.Abstract | TypeAttributes.BeforeFieldInit : (_class.Key.IsStatic ? (TypeAttributes.Abstract | TypeAttributes.Sealed) : 0)) | (_class.Key.IsIncluded ? TypeAttributes.NestedPublic : TypeAttributes.Public), objectType);
534+
var classDefinition = new TypeDefinition(program.Namespace, _class.Key.Name, (_class.Key.IsAbstract ? TypeAttributes.Abstract | TypeAttributes.BeforeFieldInit : (_class.Key.IsStatic ? (TypeAttributes.Abstract | TypeAttributes.Sealed) : 0)) | (_class.Key.IsIncluded ? TypeAttributes.NestedPublic : TypeAttributes.Public) | (_class.Key.IsSerializable ? TypeAttributes.Serializable : 0), objectType);
535535

536536
if (!_class.Key.IsIncluded)
537537
_assemblyDefinition.MainModule.Types.Add(classDefinition);
@@ -562,7 +562,7 @@ public ImmutableArray<Diagnostic> Emit(BoundProgram program, string outputPath)
562562
if (_class.Key.ParentSym != null)
563563
baseType = _classes[_class.Key.ParentSym];
564564

565-
var classDefinition = new TypeDefinition(program.Namespace, _class.Key.Name, (_class.Key.IsAbstract ? TypeAttributes.Abstract : (_class.Key.IsStatic ? (TypeAttributes.Abstract | TypeAttributes.Sealed) : 0)) | (_class.Key.IsIncluded ? TypeAttributes.NestedPublic : TypeAttributes.Public) | (baseType != objectType ? TypeAttributes.BeforeFieldInit : 0), baseType);
565+
var classDefinition = new TypeDefinition(program.Namespace, _class.Key.Name, (_class.Key.IsAbstract ? TypeAttributes.Abstract : (_class.Key.IsStatic ? (TypeAttributes.Abstract | TypeAttributes.Sealed) : 0)) | (_class.Key.IsIncluded ? TypeAttributes.NestedPublic : TypeAttributes.Public) | (baseType != objectType ? TypeAttributes.BeforeFieldInit : 0) | (_class.Key.IsSerializable ? TypeAttributes.Serializable : 0), baseType);
566566

567567
if (!_class.Key.IsIncluded)
568568
_assemblyDefinition.MainModule.Types.Add(classDefinition);
0 Bytes
Binary file not shown.
-12 Bytes
Binary file not shown.

ReCT/info.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ namespace ReCT
66
{
77
public static class info
88
{
9-
public static string Version = "v2.3.1.9"; // <- DJs semicolon
9+
public static string Version = "v2.3.1.10"; // <- DJs semicolon
1010
}
1111
}
0 Bytes
Binary file not shown.
-12 Bytes
Binary file not shown.

ReCT/obj/ReCT.csproj.nuget.dgspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
],
6464
"assetTargetFallback": true,
6565
"warn": true,
66-
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.100/RuntimeIdentifierGraph.json"
66+
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.202/RuntimeIdentifierGraph.json"
6767
}
6868
}
6969
}

ReCT/obj/ReCT.csproj.nuget.g.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/redcube/.nuget/packages/</NuGetPackageRoot>
88
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/redcube/.nuget/packages/</NuGetPackageFolders>
99
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10-
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.0</NuGetToolVersion>
10+
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
1111
</PropertyGroup>
1212
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
1313
<SourceRoot Include="/home/redcube/.nuget/packages/" />

ReCT/obj/project.assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
],
318318
"assetTargetFallback": true,
319319
"warn": true,
320-
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.100/RuntimeIdentifierGraph.json"
320+
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.202/RuntimeIdentifierGraph.json"
321321
}
322322
}
323323
}

0 commit comments

Comments
 (0)