diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases')
10 files changed, 12 insertions, 12 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnPropertyIsRemoved.cs b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnPropertyIsRemoved.cs index 359e900a8..ee695fb08 100644 --- a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnPropertyIsRemoved.cs +++ b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnPropertyIsRemoved.cs @@ -21,7 +21,7 @@ namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed [Foo] [Kept] [KeptBackingField] - public string Value { [Foo] [Kept] get; [Foo] [Kept] set; } + public string Value { [Foo][Kept] get; [Foo][Kept] set; } } class FooAttribute : Attribute diff --git a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnEventIsKept.cs b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnEventIsKept.cs index 6b4437f36..27d50d3cd 100644 --- a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnEventIsKept.cs +++ b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnEventIsKept.cs @@ -29,7 +29,7 @@ namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed [KeptAttributeAttribute (typeof (FooAttribute))] [KeptEventAddMethod] [KeptEventRemoveMethod] - public event EventHandler<EventArgs> Something { [Foo] [KeptAttributeAttribute (typeof (FooAttribute))] add { } [Foo] [KeptAttributeAttribute (typeof (FooAttribute))] remove { } } + public event EventHandler<EventArgs> Something { [Foo][KeptAttributeAttribute (typeof (FooAttribute))] add { } [Foo][KeptAttributeAttribute (typeof (FooAttribute))] remove { } } } [Kept] diff --git a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnPropertyIsKept.cs b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnPropertyIsKept.cs index b255ffc23..f4a01cbfb 100644 --- a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnPropertyIsKept.cs +++ b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UsedAttributeTypeOnPropertyIsKept.cs @@ -23,7 +23,7 @@ namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed [Kept] [KeptBackingField] [KeptAttributeAttribute (typeof (FooAttribute))] - public string Value { [Foo] [Kept] [KeptAttributeAttribute (typeof (FooAttribute))] get; [Foo] [Kept] [KeptAttributeAttribute (typeof (FooAttribute))]set; } + public string Value { [Foo][Kept][KeptAttributeAttribute (typeof (FooAttribute))] get; [Foo][Kept][KeptAttributeAttribute (typeof (FooAttribute))] set; } } [Kept] diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/VirtualMethodHierarchyDataflowAnnotationValidation.cs b/test/Mono.Linker.Tests.Cases/DataFlow/VirtualMethodHierarchyDataflowAnnotationValidation.cs index 9747f7b6f..b7f4e0f32 100644 --- a/test/Mono.Linker.Tests.Cases/DataFlow/VirtualMethodHierarchyDataflowAnnotationValidation.cs +++ b/test/Mono.Linker.Tests.Cases/DataFlow/VirtualMethodHierarchyDataflowAnnotationValidation.cs @@ -245,7 +245,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow "'DynamicallyAccessedMemberTypes' in 'DynamicallyAccessedMembersAttribute' on the generic parameter 'T' of 'Mono.Linker.Tests.Cases.DataFlow.VirtualMethodHierarchyDataflowAnnotationValidation.DerivedClass.GenericBaseWithoutDerivedWith<T>()' " + "don't match overridden generic parameter 'T' of 'Mono.Linker.Tests.Cases.DataFlow.VirtualMethodHierarchyDataflowAnnotationValidation.BaseClass.GenericBaseWithoutDerivedWith<T>()'. " + "All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage.")] - public override void GenericBaseWithoutDerivedWith<[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicConstructors)]T> () { } + public override void GenericBaseWithoutDerivedWith<[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicConstructors)] T> () { } [LogDoesNotContain ("DerivedClass.GenericBaseWithDerivedWith_")] public override void GenericBaseWithDerivedWith_<[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicConstructors)] T> () { } diff --git a/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/NoKeptCtor/UnusedTypeHasExplicitInterfacePropertyPreservedViaXml.cs b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/NoKeptCtor/UnusedTypeHasExplicitInterfacePropertyPreservedViaXml.cs index e3c174c61..044bcb27b 100644 --- a/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/NoKeptCtor/UnusedTypeHasExplicitInterfacePropertyPreservedViaXml.cs +++ b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/NoKeptCtor/UnusedTypeHasExplicitInterfacePropertyPreservedViaXml.cs @@ -28,7 +28,7 @@ namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnReferenceType.NoKeptC class A : IBar, IFoo { [Kept] - int IFoo.Foo { [Kept] [ExpectBodyModified] get; [Kept] [ExpectBodyModified] set; } + int IFoo.Foo { [Kept][ExpectBodyModified] get; [Kept][ExpectBodyModified] set; } int IBar.Bar { get; set; } } diff --git a/test/Mono.Linker.Tests.Cases/Serialization/SerializationTypeRecursion.cs b/test/Mono.Linker.Tests.Cases/Serialization/SerializationTypeRecursion.cs index dfad711ba..af92529b4 100644 --- a/test/Mono.Linker.Tests.Cases/Serialization/SerializationTypeRecursion.cs +++ b/test/Mono.Linker.Tests.Cases/Serialization/SerializationTypeRecursion.cs @@ -54,18 +54,18 @@ namespace Mono.Linker.Tests.Cases.Serialization [Kept] [KeptBackingField] - public GetSetPropertyType p2 { [Kept]get; [Kept]set; } + public GetSetPropertyType p2 { [Kept] get; [Kept] set; } // removed PrivatePropertyType p3 { get; set; } [Kept] [KeptBackingField] - public PublicGetPrivateSetPropertyType p4 { [Kept]get; [Kept]private set; } + public PublicGetPrivateSetPropertyType p4 { [Kept] get; [Kept] private set; } [Kept] [KeptBackingField] - public PrivateGetPublicSetPropertyType p5 { [Kept]private get; [Kept]set; } + public PrivateGetPublicSetPropertyType p5 { [Kept] private get; [Kept] set; } [Kept] public RecursiveType f4; diff --git a/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributesScopeUpdated.cs b/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributesScopeUpdated.cs index f1be225b9..809d0225f 100644 --- a/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributesScopeUpdated.cs +++ b/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributesScopeUpdated.cs @@ -33,7 +33,7 @@ namespace Mono.Linker.Tests.Cases.TypeForwarding } [Kept] - public static void Test_2<[KeptAttributeAttribute (typeof (TestType3Attribute))] [TestType3 (typeof (ImplementationLibrary))] T> () + public static void Test_2<[KeptAttributeAttribute (typeof (TestType3Attribute))][TestType3 (typeof (ImplementationLibrary))] T> () { } diff --git a/test/Mono.Linker.Tests.Cases/UnreachableBlock/MethodWithParametersSubstitutions.cs b/test/Mono.Linker.Tests.Cases/UnreachableBlock/MethodWithParametersSubstitutions.cs index 51e60defe..e1c7b9def 100644 --- a/test/Mono.Linker.Tests.Cases/UnreachableBlock/MethodWithParametersSubstitutions.cs +++ b/test/Mono.Linker.Tests.Cases/UnreachableBlock/MethodWithParametersSubstitutions.cs @@ -358,7 +358,7 @@ namespace Mono.Linker.Tests.Cases.UnreachableBlock [Kept] static void MethodWithParamAndVarArgs_Reached2 () { } - [Kept] [KeptMember (".ctor()")] class TestClass { } + [Kept][KeptMember (".ctor()")] class TestClass { } [Kept] struct TestStruct { } [Kept] diff --git a/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleGetter.cs b/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleGetter.cs index 7cf0078e4..4ee1ebfcb 100644 --- a/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleGetter.cs +++ b/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleGetter.cs @@ -21,7 +21,7 @@ namespace Mono.Linker.Tests.Cases.UnreachableBody class Foo { [Kept] - public string Property { [Kept] [ExpectBodyModified] get; set; } + public string Property { [Kept][ExpectBodyModified] get; set; } } } }
\ No newline at end of file diff --git a/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleSetter.cs b/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleSetter.cs index 971477418..7dc74a98e 100644 --- a/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleSetter.cs +++ b/test/Mono.Linker.Tests.Cases/UnreachableBody/SimpleSetter.cs @@ -21,7 +21,7 @@ namespace Mono.Linker.Tests.Cases.UnreachableBody class Foo { [Kept] - public string Property { get; [Kept] [ExpectBodyModified] set; } + public string Property { get; [Kept][ExpectBodyModified] set; } } } }
\ No newline at end of file |