-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Mosa.TinyCoreLib project stub (#1238)
* Add Mosa.TinyCoreLib project Signed-off-by: AnErrupTion <[email protected]> * Add missing files + disable warnings in project Signed-off-by: AnErrupTion <[email protected]> --------- Signed-off-by: AnErrupTion <[email protected]>
- Loading branch information
1 parent
5ac3b6c
commit d0ba383
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
Source/Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/Binder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Source/Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/CSharpArgumentInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
Source/Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/CSharpArgumentInfoFlags.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
20 changes: 20 additions & 0 deletions
20
Source/Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/CSharpBinderFlags.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
26 changes: 26 additions & 0 deletions
26
Source/Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/RuntimeBinderException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...Mosa.TinyCoreLib/Microsoft.CSharp.RuntimeBinder/RuntimeBinderInternalCompilerException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
48
Source/Mosa.TinyCoreLib/Microsoft.CSharp/CSharpCodeProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Source/Mosa.TinyCoreLib/Microsoft.VisualBasic.CompilerServices/BooleanType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Source/Mosa.TinyCoreLib/Microsoft.VisualBasic.CompilerServices/ByteType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Source/Mosa.TinyCoreLib/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Source/Mosa.TinyCoreLib/Microsoft.VisualBasic.CompilerServices/CharType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.