Skip to content

Commit bd7a2a1

Browse files
authored
Fix For Attribute to use System.Attribute (#250)
1 parent 69c9ff2 commit bd7a2a1

File tree

34 files changed

+70
-127
lines changed

34 files changed

+70
-127
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public partial class MyReactiveControl : UserControl
518518
public MyReactiveControl()
519519
{
520520
InitializeComponent();
521-
MyReactiveClass = new MyReactiveClass();
521+
ViewModel = new MyReactiveClass();
522522
}
523523
}
524524
```
@@ -534,7 +534,7 @@ public partial class MyReactiveControl : UserControl
534534
public MyReactiveControl()
535535
{
536536
InitializeComponent();
537-
MyReactiveClass = new MyReactiveClass();
537+
ViewModel = new MyReactiveClass();
538538
}
539539
}
540540
```

src/ReactiveUI.SourceGenerator.Tests/DERIVEDLIST/BindableDerivedListGeneratorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.BindableDerivedListAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,6 +14,6 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
19-
internal sealed class BindableDerivedListAttribute : Attribute;
17+
internal sealed class BindableDerivedListAttribute : global::System.Attribute;
2018
#nullable restore
2119
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethods#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethodsWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableProp#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttribute#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeNullableRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromPartialProperty#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.FromFieldNestedClass#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.NamedFromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.NonReadOnlyFromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.NonReadOnlyFromFieldProtected#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ObservableAsPropertyAttribute : Attribute
17+
internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the name of the property.

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePartialProperties#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ReactiveAttribute : Attribute
17+
internal sealed class ReactiveAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the AccessModifier of the set property.

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactiveProperiesWithAttributes#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ReactiveAttribute : Attribute
17+
internal sealed class ReactiveAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the AccessModifier of the set property.

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ReactiveAttribute : Attribute
17+
internal sealed class ReactiveAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the AccessModifier of the set property.

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesCalledValue#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ReactiveAttribute : Attribute
17+
internal sealed class ReactiveAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the AccessModifier of the set property.

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithAccess#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// The .NET Foundation licenses this file to you under the MIT license.
55
// See the LICENSE file in the project root for full license information.
66

7-
using System;
8-
97
// <auto-generated/>
108
#pragma warning disable
119
#nullable enable
@@ -16,7 +14,7 @@ namespace ReactiveUI.SourceGenerators;
1614
/// </summary>
1715
/// <seealso cref="Attribute" />
1816
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
19-
internal sealed class ReactiveAttribute : Attribute
17+
internal sealed class ReactiveAttribute : global::System.Attribute
2018
{
2119
/// <summary>
2220
/// Gets the AccessModifier of the set property.

0 commit comments

Comments
 (0)