Skip to content

Commit

Permalink
Add Mosa.TinyCoreLib project stub (mosa#1238)
Browse files Browse the repository at this point in the history
* Add Mosa.TinyCoreLib project

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Add missing files + disable warnings in project

Signed-off-by: AnErrupTion <anerruption@disroot.org>

---------

Signed-off-by: AnErrupTion <anerruption@disroot.org>
  • Loading branch information
AnErrupTion committed May 18, 2024
1 parent 5ac3b6c commit d0ba383
Show file tree
Hide file tree
Showing 4,824 changed files with 335,239 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
21 changes: 21 additions & 0 deletions Source/Mosa.Linux.sln
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mosa.Tool.Explorer.Avalonia
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mosa.Utility.CreateCoreLib", "Mosa.Utility.CreateCoreLib\Mosa.Utility.CreateCoreLib.csproj", "{3347E41D-AD8B-4891-9A9B-5EE36BACA6F1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mosa.TinyCoreLib", "Mosa.TinyCoreLib\Mosa.TinyCoreLib.csproj", "{844037C4-B018-4AD0-8237-BAE46E024994}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -1425,6 +1427,24 @@ Global
{3347E41D-AD8B-4891-9A9B-5EE36BACA6F1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{3347E41D-AD8B-4891-9A9B-5EE36BACA6F1}.Release|x86.ActiveCfg = Release|Any CPU
{3347E41D-AD8B-4891-9A9B-5EE36BACA6F1}.Release|x86.Build.0 = Release|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Debug|Any CPU.Build.0 = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Debug|x86.ActiveCfg = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Debug|x86.Build.0 = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Description|Any CPU.ActiveCfg = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Description|Any CPU.Build.0 = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Description|Mixed Platforms.ActiveCfg = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Description|Mixed Platforms.Build.0 = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Description|x86.ActiveCfg = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Description|x86.Build.0 = Debug|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Release|Any CPU.ActiveCfg = Release|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Release|Any CPU.Build.0 = Release|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Release|x86.ActiveCfg = Release|Any CPU
{844037C4-B018-4AD0-8237-BAE46E024994}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1500,6 +1520,7 @@ Global
{A4028807-1B21-4D14-9CE3-5FD1AAD9EDD7} = {F0EFF742-92D5-4219-939A-8F6F8DAB24E5}
{FBC3B0CD-D775-41C6-A735-F59118838397} = {D032B24A-CE3A-4881-BACE-CC4FE0AFD69D}
{3347E41D-AD8B-4891-9A9B-5EE36BACA6F1} = {90065B0F-1BFE-40D8-AED5-11096B2535B0}
{844037C4-B018-4AD0-8237-BAE46E024994} = {079CE6E3-8038-44F5-B18A-2D586A827D95}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C22A5C94-6B05-4B1B-845A-A2EA7615E093}
Expand Down
78 changes: 78 additions & 0 deletions Source/Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/Binder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;

namespace Microsoft.CSharp.RuntimeBinder;

[EditorBrowsable(EditorBrowsableState.Never)]
public static class Binder
{
[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder BinaryOperation(CSharpBinderFlags flags, ExpressionType operation, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder Convert(CSharpBinderFlags flags, Type type, Type? context)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder GetIndex(CSharpBinderFlags flags, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder GetMember(CSharpBinderFlags flags, string name, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder Invoke(CSharpBinderFlags flags, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder InvokeConstructor(CSharpBinderFlags flags, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder InvokeMember(CSharpBinderFlags flags, string name, IEnumerable<Type>? typeArguments, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder IsEvent(CSharpBinderFlags flags, string name, Type? context)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder SetIndex(CSharpBinderFlags flags, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder SetMember(CSharpBinderFlags flags, string name, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}

[RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static CallSiteBinder UnaryOperation(CSharpBinderFlags flags, ExpressionType operation, Type? context, IEnumerable<CSharpArgumentInfo>? argumentInfo)
{
throw null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.ComponentModel;

namespace Microsoft.CSharp.RuntimeBinder;

[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class CSharpArgumentInfo
{
internal CSharpArgumentInfo()
{
}

public static CSharpArgumentInfo Create(CSharpArgumentInfoFlags flags, string? name)
{
throw null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.ComponentModel;

namespace Microsoft.CSharp.RuntimeBinder;

[EditorBrowsable(EditorBrowsableState.Never)]
[Flags]
public enum CSharpArgumentInfoFlags
{
None = 0,
UseCompileTimeType = 1,
Constant = 2,
NamedArgument = 4,
IsRef = 8,
IsOut = 0x10,
IsStaticType = 0x20
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.ComponentModel;

namespace Microsoft.CSharp.RuntimeBinder;

[EditorBrowsable(EditorBrowsableState.Never)]
[Flags]
public enum CSharpBinderFlags
{
None = 0,
CheckedContext = 1,
InvokeSimpleName = 2,
InvokeSpecialName = 4,
BinaryOperationLogical = 8,
ConvertExplicit = 0x10,
ConvertArrayIndex = 0x20,
ResultIndexed = 0x40,
ValueFromCompoundAssignment = 0x80,
ResultDiscarded = 0x100
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace Microsoft.CSharp.RuntimeBinder;

public class RuntimeBinderException : Exception
{
public RuntimeBinderException()
{
}

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected RuntimeBinderException(SerializationInfo info, StreamingContext context)
{
}

public RuntimeBinderException(string? message)
{
}

public RuntimeBinderException(string? message, Exception? innerException)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace Microsoft.CSharp.RuntimeBinder;

public class RuntimeBinderInternalCompilerException : Exception
{
public RuntimeBinderInternalCompilerException()
{
}

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected RuntimeBinderInternalCompilerException(SerializationInfo info, StreamingContext context)
{
}

public RuntimeBinderInternalCompilerException(string? message)
{
}

public RuntimeBinderInternalCompilerException(string? message, Exception? innerException)
{
}
}
48 changes: 48 additions & 0 deletions Source/Mosa.TinyCoreLib/Microsoft.CSharp/CSharpCodeProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;

namespace Microsoft.CSharp;

public class CSharpCodeProvider : CodeDomProvider
{
public override string FileExtension
{
get
{
throw null;
}
}

public CSharpCodeProvider()
{
}

public CSharpCodeProvider(IDictionary<string, string> providerOptions)
{
}

[Obsolete("ICodeCompiler has been deprecated. Use the methods directly on the CodeDomProvider class instead.")]
public override ICodeCompiler CreateCompiler()
{
throw null;
}

[Obsolete("ICodeGenerator has been deprecated. Use the methods directly on the CodeDomProvider class instead.")]
public override ICodeGenerator CreateGenerator()
{
throw null;
}

public override void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
{
}

public override TypeConverter GetConverter(Type type)
{
throw null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.ComponentModel;

namespace Microsoft.VisualBasic.CompilerServices;

[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class BooleanType
{
internal BooleanType()
{
}

public static bool FromObject(object? Value)
{
throw null;
}

public static bool FromString(string? Value)
{
throw null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.ComponentModel;

namespace Microsoft.VisualBasic.CompilerServices;

[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class ByteType
{
internal ByteType()
{
}

public static byte FromObject(object? Value)
{
throw null;
}

public static byte FromString(string? Value)
{
throw null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.ComponentModel;

namespace Microsoft.VisualBasic.CompilerServices;

[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class CharArrayType
{
internal CharArrayType()
{
}

public static char[] FromObject(object? Value)
{
throw null;
}

public static char[] FromString(string? Value)
{
throw null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.ComponentModel;

namespace Microsoft.VisualBasic.CompilerServices;

[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class CharType
{
internal CharType()
{
}

public static char FromObject(object? Value)
{
throw null;
}

public static char FromString(string? Value)
{
throw null;
}
}
Loading

0 comments on commit d0ba383

Please sign in to comment.