Imported Upstream version 6.6.0.89

Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-09-24 08:53:40 +00:00
parent cf815e07e0
commit 95fdb59ea6
2556 changed files with 138145 additions and 47453 deletions

View File

@ -0,0 +1,8 @@

namespace mdoc.Test.SampleClasses
{
public struct ReadOnlySpan<T>
{
public T this[int index] => default(T);
}
}

View File

@ -0,0 +1,10 @@
namespace mdoc.Test.SampleClasses
{
public class ReadonlyRefClass
{
int i;
public ref int Ref() => ref i;
public ref readonly int ReadonlyRef() => ref i;
}
}

View File

@ -0,0 +1,100 @@
using System;
using Windows.Foundation.Metadata;
namespace mdoc.Test.SampleClasses
{
public class SomeClass
{
public SomeClass(int i)
{
}
public SomeClass(int i, int j)
{
}
public int Field;
public int Property { get; set; }
public static int StaticProperty { get; set; }
public TestClass Property2 { get; set; }
public static TestClass StaticProperty2 { get; set; }
public TestClass Property3 { get; }
public TestClass Property4
{
set
{
}
}
public async void AsyncMethod()
{
}
public static async void StaticAsyncMethod()
{
}
public void SomeMethodWithParameters(SomeClass someClass, int i)
{
}
public void SomeMethod()
{
}
public void SomeMethodWebHostHiddenParameter([WebHostHidden] int parameter)
{
}
[return: WebHostHidden()]
public int SomeMethodWebHostHiddenReturn(int parameter)
{
throw new NotImplementedException();
}
public static void SomeStaticMethod()
{
}
public int SomeMethod2()
{
return 0;
}
public static int SomeStaticMethod2()
{
return 0;
}
public bool SomeMethodWithReturnBool()
{
return true;
}
public void op_NotOperator()
{
}
public void get_Method()
{
}
public event EventHandler<object> AppMemoryUsageIncreased;
public static event EventHandler<object> StaticEvent;
private static event EventHandler<object> PrivateEvent;
}
}

View File

@ -0,0 +1,15 @@
namespace mdoc.Test.SampleClasses
{
public sealed class SomeClassWithManyConstructors
{
public SomeClassWithManyConstructors(int i)
{
}
public SomeClassWithManyConstructors(float i)
{
}
}
}

View File

@ -0,0 +1,4 @@
namespace mdoc.Test.SampleClasses
{
public delegate void SomeDelegate(string str);
}

View File

@ -0,0 +1,6 @@
namespace mdoc.Test.SampleClasses
{
public enum SomeEmptyEnum
{
}
}

View File

@ -0,0 +1,8 @@
namespace mdoc.Test.SampleClasses
{
public enum SomeEnum
{
TestEnumElement1,
TestEnumElement2,
}
}

View File

@ -0,0 +1,22 @@
namespace mdoc.Test.SampleClasses
{
public class SomeGenericClass<T>
{
public void SomeMethod<T>(T t)
{
}
public void SomeMethod2(T t)
{
}
public void SomeMethod3(int t)
{
}
~SomeGenericClass()
{
}
}
}

View File

@ -0,0 +1,7 @@
namespace mdoc.Test.SampleClasses
{
public interface SomeInterface
{
int B { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace mdoc.Test.SampleClasses
{
public struct SomeStruct
{
public int IntMember;
public static int StaticMember;
public TestClass TestClassMember;
}
}

View File

@ -0,0 +1,9 @@
using Mono.Documentation;
namespace System
{
[Obsolete(Consts.RefTypeObsoleteString, true)]
public struct Span<T>
{
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,49 @@
using System;
namespace mdoc.Test.SampleClasses
{
public class TestClass
{
public TestClass () { }
// private constructor
TestClass (TestPrivateClass arg) { }
// Unary Operators
public static TestClass operator + (TestClass c1) { return new TestClass (); }
public static TestClass operator - (TestClass c1) { return new TestClass (); }
public static TestClass operator ! (TestClass c1) { return new TestClass (); }
public static TestClass operator ~ (TestClass c1) { return new TestClass (); }
public static TestClass operator ++ (TestClass c1) { return new TestClass (); }
public static TestClass operator -- (TestClass c1) { return new TestClass (); }
// Binary Operators
public static TestClass operator + (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator - (TestClass c1, TestClass c2) {return new TestClass (); }
public static TestClass operator / (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator * (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator % (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator & (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator | (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator ^ (TestClass c1, TestClass c2) { return new TestClass (); }
public static TestClass operator << (TestClass c1, int c2) { return new TestClass (); }
public static TestClass operator >> (TestClass c1, int c2) { return new TestClass (); }
// Comparison Operators
public static bool operator true (TestClass c1) { return false; }
public static bool operator false (TestClass c1) { return false; }
public static bool operator == (TestClass c1, TestClass c2) { return true; }
public static bool operator != (TestClass c1, TestClass c2) { return true; }
public static bool operator < (TestClass c1, TestClass c2) { return true; }
public static bool operator > (TestClass c1, TestClass c2) { return true; }
public static bool operator <= (TestClass c1, TestClass c2) { return true; }
public static bool operator >= (TestClass c1, TestClass c2) { return true; }
// Conversion Operators
public static implicit operator TestClassTwo (TestClass c1) { return new TestClassTwo (); }
public static implicit operator TestClass (TestClassTwo c1) { return new TestClass (); }
public static explicit operator int (TestClass c1) { return 0; }
public static explicit operator TestClass (int c1) { return new TestClass (); }
public void DoSomethingWithParams (params int[] values) { }
public void RefAndOut (ref int a, out int b) { b = 1; }
}
}

View File

@ -0,0 +1,10 @@
using System;
namespace mdoc.Test.SampleClasses
{
public class TestClassTwo
{
public TestClassTwo ()
{
}
}
}

View File

@ -0,0 +1,8 @@
using System;
namespace mdoc.Test.SampleClasses
{
class TestPrivateClass
{
}
}

View File

@ -0,0 +1,9 @@
using System;
namespace Windows.Foundation.Metadata
{
public class WebHostHiddenAttribute : Attribute
{
}
}

View File

@ -0,0 +1,14 @@
using Windows.Foundation.Metadata;
namespace mdoc.Test.SampleClasses
{
[WebHostHidden]
public class WebHostHiddenTestClass
{
[WebHostHidden]
public void SomeMethod()
{
}
}
}