Imported Upstream version 5.14.0.78

Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-05-10 08:37:03 +00:00
parent 74b74abd9f
commit 19234507ba
1776 changed files with 67755 additions and 31107 deletions

View File

@@ -22,7 +22,7 @@ EXTRA_DISTFILES = \
$(RESOURCE_FILES)
Commons.Xml.Relaxng.Rnc/RncParser.cs: Commons.Xml.Relaxng.Rnc/RncParser.jay $(topdir)/jay/skeleton.cs
$(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $(CURDIR)/Commons.Xml.Relaxng.Rnc/RncParser.jay > Commons.Xml.Relaxng.Rnc/RncParser.cs
$(topdir)/jay/jay -ctv -o Commons.Xml.Relaxng.Rnc/RncParser.cs $< < $(topdir)/jay/skeleton.cs
BUILT_SOURCES = Commons.Xml.Relaxng.Rnc/RncParser.cs

View File

@@ -8,6 +8,7 @@
//
using System;
using System.Collections.Generic;
using Microsoft.CSharp;
using NUnit.Framework;
@@ -21,5 +22,11 @@ namespace MonoTests.Cscompmgd
public void GetReady ()
{
}
[TestCase]
public void EmptySourceTexts ()
{
Assert.Throws<IndexOutOfRangeException> (() => Compiler.Compile (Array.Empty<string> (), Array.Empty<string> (), "", null, null));
}
}
}

View File

@@ -1,4 +1,4 @@
TypeForwarders.cs
AssemblyInfo.cs
RegistryAclExtensions.cs
../../../../external/corefx/src/Microsoft.Win32.Registry.AccessControl/src/Microsoft/Win32/RegistryAclExtensions.cs

View File

@@ -1,63 +0,0 @@
//
// RegistryAclExtensions.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Security;
using System.Security.AccessControl;
namespace Microsoft.Win32
{
public static class RegistryAclExtensions
{
public static RegistrySecurity GetAccessControl (this RegistryKey key)
{
if (key == null)
throw new ArgumentNullException (nameof (key));
return key.GetAccessControl ();
}
public static RegistrySecurity GetAccessControl (this RegistryKey key, AccessControlSections includeSections)
{
if (key == null)
throw new ArgumentNullException (nameof (key));
return key.GetAccessControl (includeSections);
}
public static void SetAccessControl (this RegistryKey key, RegistrySecurity registrySecurity)
{
if (key == null)
throw new ArgumentNullException (nameof (key));
key.SetAccessControl (registrySecurity);
}
}
}

View File

@@ -14,6 +14,8 @@ SIGN_FLAGS = /delaysign /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make

View File

@@ -1,91 +0,0 @@
//
// StackFrameExtensions.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace System.Diagnostics
{
public static class StackFrameExtensions
{
[MonoTODO]
public static IntPtr GetNativeImageBase (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static IntPtr GetNativeIP (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasNativeImage (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasMethod (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasILOffset (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasSource (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
}
}

View File

@@ -1,5 +1,2 @@
TypeForwarders.cs
AssemblyInfo.cs
../../../build/common/MonoTODOAttribute.cs
StackFrameExtensions.cs

View File

@@ -21,6 +21,7 @@
//
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.StackFrame))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.StackFrameExtensions))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.StackTrace))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.SymbolStore.ISymbolBinder))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.SymbolStore.ISymbolBinder1))]

View File

@@ -14,6 +14,8 @@ SIGN_FLAGS = /delaysign /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make

View File

@@ -1,4 +0,0 @@
partial class SR
{
public const string Argument_InvalidFlag = "Value of flags is invalid.";
}

View File

@@ -1,6 +1,2 @@
TypeForwarders.cs
AssemblyInfo.cs
SR.cs
../../../../external/corefx/src/System.Runtime.Extensions/src/System/Globalization/Extensions.cs
../../../../external/corefx/src/System.Runtime.Extensions/src/System/StringNormalizationExtensions.cs

View File

@@ -20,5 +20,7 @@
// THE SOFTWARE.
//
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Globalization.GlobalizationExtensions))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Globalization.IdnMapping))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.StringNormalizationExtensions))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Text.NormalizationForm))]

View File

@@ -1,101 +0,0 @@
//
// FileSystemAclExtensions.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Security.AccessControl;
namespace System.IO
{
public static class FileSystemAclExtensions
{
public static DirectorySecurity GetAccessControl(this DirectoryInfo directoryInfo)
{
if (directoryInfo == null)
throw new ArgumentNullException (nameof (directoryInfo));
return directoryInfo.GetAccessControl ();
}
public static DirectorySecurity GetAccessControl(this DirectoryInfo directoryInfo, AccessControlSections includeSections)
{
if (directoryInfo == null)
throw new ArgumentNullException (nameof (directoryInfo));
return directoryInfo.GetAccessControl (includeSections);
}
public static FileSecurity GetAccessControl(this FileInfo fileInfo)
{
if (fileInfo == null)
throw new ArgumentNullException (nameof (fileInfo));
return fileInfo.GetAccessControl ();
}
public static FileSecurity GetAccessControl(this FileInfo fileInfo, AccessControlSections includeSections)
{
if (fileInfo == null)
throw new ArgumentNullException (nameof (fileInfo));
return fileInfo.GetAccessControl (includeSections);
}
public static FileSecurity GetAccessControl(this FileStream fileStream)
{
if (fileStream == null)
throw new ArgumentNullException (nameof (fileStream));
return fileStream.GetAccessControl ();
}
public static void SetAccessControl(this DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)
{
if (directoryInfo == null)
throw new ArgumentNullException (nameof (directoryInfo));
directoryInfo.SetAccessControl (directorySecurity);
}
public static void SetAccessControl(this FileInfo fileInfo, FileSecurity fileSecurity)
{
if (fileInfo == null)
throw new ArgumentNullException (nameof (fileInfo));
fileInfo.SetAccessControl (fileSecurity);
}
public static void SetAccessControl(this FileStream fileStream, FileSecurity fileSecurity)
{
if (fileStream == null)
throw new ArgumentNullException (nameof (fileStream));
fileStream.SetAccessControl (fileSecurity);
}
}
}

View File

@@ -1,5 +1,4 @@
TypeForwarders.cs
AssemblyInfo.cs
../../../build/common/MonoTODOAttribute.cs
FileSystemAclExtensions.cs
../../../../external/corefx/src/System.IO.FileSystem.AccessControl/src/System/IO/FileSystemAclExtensions.net46.cs

View File

@@ -1,3 +1,2 @@
TypeForwarders.cs
AssemblyInfo.cs
DynamicMethod.cs

View File

@@ -20,6 +20,4 @@
// THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Reflection.Emit.DynamicMethod))]
#endif

View File

@@ -1,3 +1,3 @@
AssemblyInfo.cs
AssemblyExtensions.cs
AssemblyLoadContext.cs
TypeForwarders.cs

View File

@@ -1,5 +1,5 @@
//
// IBounds.cs
//
// Copyright (C) 2018 Microsoft Corporation (http://www.microsoft.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -20,21 +20,5 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc.
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace System.Windows.Forms
{
interface IBounds
{
Rectangle Bounds { get; }
}
}
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Reflection.Metadata.AssemblyExtensions))]

View File

@@ -1,4 +1,2 @@
TypeForwarders.cs
AssemblyInfo.cs
../../../../external/corefx/src/System.Runtime.Serialization.Primitives/src/System/Runtime/Serialization/ISerializationSurrogateProvider.cs

View File

@@ -30,6 +30,7 @@
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.IExtensibleDataObject))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.IgnoreDataMemberAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.InvalidDataContractException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.ISerializationSurrogateProvider))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.KnownTypeAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.OnDeserializedAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.Serialization.OnDeserializingAttribute))]

Some files were not shown because too many files have changed in this diff Show More