├── .editorconfig
├── .github
├── renovate.json
└── workflows
│ ├── ci-build.yml
│ ├── lock.yml
│ └── release.yml
├── .gitignore
├── LICENSE
├── README.md
├── images
└── logo.png
├── src
├── Directory.Packages.props
├── Directory.build.props
├── ReactiveUI.SourceGenerator.Tests
│ ├── DERIVEDLIST
│ │ └── BindableDerivedListGeneratorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.BindableDerivedListAttribute.g.verified.cs
│ ├── ModuleInitializer.cs
│ ├── OAPH
│ │ ├── OAPFromObservableGeneratorTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromField#TestNs.TestVM.ObservableAsProperties.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservableMethods#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservableMethods#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservableMethodsWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservableMethodsWithName#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservableProp#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservableProp#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM+TestVMInner1.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM+TestVMInner2+TestVMInner3.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM+TestVMInner2.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttribute#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttribute#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeNullableRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeNullableRef#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeRef#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromObservablePropertiesWithName#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromPartialProperty#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPFromObservableGeneratorTests.FromPartialProperty#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs
│ │ ├── OAPGeneratorTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPGeneratorTests.FromField#TestNs.TestVM.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.FromFieldNestedClass#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPGeneratorTests.FromFieldNestedClass#TestNs.TestVM+TestVMInner1.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.FromFieldNestedClass#TestNs.TestVM+TestVMInner2+TestVMInner3.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.FromFieldNestedClass#TestNs.TestVM+TestVMInner2.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.FromFieldNestedClass#TestNs.TestVM.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.NamedFromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPGeneratorTests.NamedFromField#TestNs.TestVM.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.NonReadOnlyFromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ ├── OAPGeneratorTests.NonReadOnlyFromField#TestNs.TestVM.ObservableAsProperties.g.verified.cs
│ │ ├── OAPGeneratorTests.NonReadOnlyFromFieldProtected#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
│ │ └── OAPGeneratorTests.NonReadOnlyFromFieldProtected#TestNs.TestVM.ObservableAsProperties.g.verified.cs
│ ├── REACTIVE
│ │ ├── ReactiveGeneratorTests.FromReactivePartialProperties#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePartialProperties#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactiveProperiesWithAttributes#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactiveProperiesWithAttributes#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactiveProperiesWithAttributes#TestNs.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactiveProperties#TestNs.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesCalledValue#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesCalledValue#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesCalledValue#TestNs.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithAccess#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithAccess#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithAccess#TestNs.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithAttributesAccessAndInheritance#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithAttributesAccessAndInheritance#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithAttributesAccessAndInheritance#TestNs.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithIdenticalClass#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithIdenticalClass#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithIdenticalClass#TestNs1.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithIdenticalClass#TestNs2.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithInit#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithInit#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithInit#TestNs.TestVM.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#TestNs1.TestViewModel3+TestInnerClass1.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#TestNs1.TestViewModel3+TestInnerClass2+TestInnerClass3.Properties.g.verified.cs
│ │ ├── ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#TestNs1.TestViewModel3+TestInnerClass2.Properties.g.verified.cs
│ │ └── ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#TestNs1.TestViewModel3.Properties.g.verified.cs
│ ├── REACTIVECMD
│ │ ├── ReactiveCMDGeneratorTests.FromReactiveAsyncCommand#ReactiveUI.SourceGenerators.ReactiveCommandAttribute.g.verified.cs
│ │ ├── ReactiveCMDGeneratorTests.FromReactiveAsyncCommandWithParameter#ReactiveUI.SourceGenerators.ReactiveCommandAttribute.g.verified.cs
│ │ ├── ReactiveCMDGeneratorTests.FromReactiveCommand#ReactiveUI.SourceGenerators.ReactiveCommandAttribute.g.verified.cs
│ │ ├── ReactiveCMDGeneratorTests.FromReactiveCommandWithNestedClasses#ReactiveUI.SourceGenerators.ReactiveCommandAttribute.g.verified.cs
│ │ ├── ReactiveCMDGeneratorTests.FromReactiveCommandWithOutputScheduler#ReactiveUI.SourceGenerators.ReactiveCommandAttribute.g.verified.cs
│ │ └── ReactiveCMDGeneratorTests.FromReactiveCommandWithParameter#ReactiveUI.SourceGenerators.ReactiveCommandAttribute.g.verified.cs
│ ├── ReactiveUI.SourceGenerators.Tests.csproj
│ ├── TestBase.cs
│ ├── TestHelper.cs
│ └── UnitTests
│ │ ├── BindableDerivedListGeneratorTests.cs
│ │ ├── OAPFromObservableGeneratorTests.cs
│ │ ├── OAPGeneratorTests.cs
│ │ ├── ReactiveCMDGeneratorTests.cs
│ │ └── ReactiveGeneratorTests.cs
├── ReactiveUI.SourceGenerators.Analyzers.CodeFixes
│ ├── AnalyzerReleases.Shipped.md
│ ├── AnalyzerReleases.Unshipped.md
│ ├── Core
│ │ ├── Extensions
│ │ │ ├── FieldSyntaxExtensions.cs
│ │ │ ├── ISymbolExtensions.cs
│ │ │ └── ITypeSymbolExtensions.cs
│ │ ├── Generated
│ │ │ └── PolySharp.SourceGenerators
│ │ │ │ └── PolySharp.SourceGenerators.PolyfillsGenerator
│ │ │ │ ├── System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs
│ │ │ │ └── System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs
│ │ └── Helpers
│ │ │ ├── EquatableArray{T}.cs
│ │ │ ├── HashCode.cs
│ │ │ └── ImmutableArrayBuilder{T}.cs
│ ├── Diagnostics
│ │ ├── CodeFixers
│ │ │ ├── PropertyToReactiveFieldAnalyzer.cs
│ │ │ └── PropertyToReactiveFieldCodeFixProvider.cs
│ │ └── DiagnosticDescriptors.cs
│ └── ReactiveUI.SourceGenerators.Analyzers.CodeFixes.csproj
├── ReactiveUI.SourceGenerators.Execute.Maui
│ ├── IViewForTest.cs
│ ├── ReactiveUI.SourceGenerators.Execute.Maui.csproj
│ └── TestViewModel.cs
├── ReactiveUI.SourceGenerators.Execute.Nested1
│ ├── Class1.cs
│ └── ReactiveUI.SourceGenerators.Execute.Nested1.csproj
├── ReactiveUI.SourceGenerators.Execute.Nested2
│ ├── Class1.cs
│ └── ReactiveUI.SourceGenerators.Execute.Nested2.csproj
├── ReactiveUI.SourceGenerators.Execute.Nested3
│ ├── Class1.cs
│ ├── Nested4
│ │ └── Class1.cs
│ └── ReactiveUI.SourceGenerators.Execute.Nested3.csproj
├── ReactiveUI.SourceGenerators.Execute
│ ├── InternalTestViewModel.cs
│ ├── Person.cs
│ ├── Program.cs
│ ├── ReactiveUI.SourceGenerators.Execute.csproj
│ ├── TestAttribute.cs
│ ├── TestClassOAPH_VM.cs
│ ├── TestViewModel.cs
│ ├── TestViewModel2.cs
│ ├── TestViewModel3.cs
│ ├── TestViewModel{partTwo}.cs
│ ├── TestViewWinForms.Designer.cs
│ ├── TestViewWinForms.cs
│ ├── TestViewWinForms.resx
│ ├── TestViewWpf.cs
│ ├── TestViewWpf2.cs
│ ├── TestWinFormsRCHost.Designer.cs
│ ├── TestWinFormsRCHost.cs
│ ├── TestWinFormsRCHost.resx
│ ├── TestWinFormsVMCHost.Designer.cs
│ ├── TestWinFormsVMCHost.cs
│ └── TestWinFormsVMCHost.resx
├── ReactiveUI.SourceGenerators.Roslyn
│ ├── AnalyzerReleases.Shipped.md
│ ├── AnalyzerReleases.Unshipped.md
│ ├── AttributeDefinitions.cs
│ ├── BindableDerivedList
│ │ ├── BindableDerivedListGenerator.Execute.cs
│ │ ├── BindableDerivedListGenerator.cs
│ │ └── Models
│ │ │ └── BindableDerivedListInfo.cs
│ ├── Core
│ │ ├── Extensions
│ │ │ ├── AttributeDataExtensions.cs
│ │ │ ├── CompilationExtensions.cs
│ │ │ ├── ContextExtensions.cs
│ │ │ ├── DiagnosticsExtensions.cs
│ │ │ ├── FieldSyntaxExtensions.cs
│ │ │ ├── INamedTypeSymbolExtensions.cs
│ │ │ ├── ISymbolExtensions.cs
│ │ │ ├── ITypeSymbolExtensions.cs
│ │ │ ├── SymbolInfoExtensions.cs
│ │ │ ├── SyntaxTokenExtensions.cs
│ │ │ └── SyntaxValueProviderExtensions.cs
│ │ ├── Helpers
│ │ │ ├── AttributeInfo.cs
│ │ │ ├── EquatableArray{T}.cs
│ │ │ ├── HashCode.cs
│ │ │ ├── ImmutableArrayBuilder{T}.cs
│ │ │ ├── SymbolHelpers.cs
│ │ │ ├── TypedConstantInfo.Factory.cs
│ │ │ └── TypedConstantInfo.cs
│ │ └── Models
│ │ │ ├── DiagnosticInfo.cs
│ │ │ ├── GenericGeneratorAttributeSyntaxContext.cs
│ │ │ ├── PropertyAttributeData.cs
│ │ │ ├── Result.cs
│ │ │ └── TargetInfo.cs
│ ├── Diagnostics
│ │ ├── DiagnosticDescriptors.cs
│ │ ├── SuppressionDescriptors.cs
│ │ └── Suppressions
│ │ │ ├── OAPHMethodDoesNotNeedToBeStaticDiagnosticSuppressor.cs
│ │ │ ├── ObservableAsPropertyAttributeWithFieldNeverReadDiagnosticSuppressor.cs
│ │ │ ├── ReactiveAttributeWithFieldTargetDiagnosticSuppressor.cs
│ │ │ ├── ReactiveAttributeWithPropertyTargetDiagnosticSuppressor.cs
│ │ │ ├── ReactiveCommandAttributeWithFieldOrPropertyTargetDiagnosticSuppressor.cs
│ │ │ ├── ReactiveCommandMethodDoesNotNeedToBeStaticDiagnosticSuppressor.cs
│ │ │ └── ReactiveFieldDoesNotNeedToBeReadOnlyDiagnosticSuppressor.cs
│ ├── Generated
│ │ └── PolySharp.SourceGenerators
│ │ │ └── PolySharp.SourceGenerators.PolyfillsGenerator
│ │ │ ├── System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs
│ │ │ ├── System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs
│ │ │ ├── System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs
│ │ │ ├── System.Index.g.cs
│ │ │ ├── System.Range.g.cs
│ │ │ └── System.Runtime.CompilerServices.IsExternalInit.g.cs
│ ├── IViewFor
│ │ ├── IViewForGenerator.Execute.cs
│ │ ├── IViewForGenerator.cs
│ │ └── Models
│ │ │ ├── IViewForBaseType.cs
│ │ │ └── IViewForInfo.cs
│ ├── ObservableAsProperty
│ │ ├── Models
│ │ │ ├── ObservableFieldInfo.cs
│ │ │ └── ObservableMethodInfo.cs
│ │ ├── ObservableAsPropertyGenerator.cs
│ │ ├── ObservableAsPropertyGenerator{FromField}.Execute.cs
│ │ ├── ObservableAsPropertyGenerator{FromField}.cs
│ │ ├── ObservableAsPropertyGenerator{FromObservable}.Execute.cs
│ │ └── ObservableAsPropertyGenerator{FromObservable}.cs
│ ├── Reactive
│ │ ├── Models
│ │ │ └── PropertyInfo.cs
│ │ ├── ReactiveGenerator.Execute.cs
│ │ └── ReactiveGenerator.cs
│ ├── ReactiveCommand
│ │ ├── Models
│ │ │ ├── CanExecuteTypeInfo.cs
│ │ │ └── CommandInfo.cs
│ │ ├── ReactiveCommandGenerator.Execute.cs
│ │ └── ReactiveCommandGenerator.cs
│ ├── ReactiveUI.SourceGenerators.Roslyn.projitems
│ ├── ReactiveUI.SourceGenerators.Roslyn.shproj
│ ├── RoutedControlHost
│ │ ├── Models
│ │ │ └── RoutedControlHostInfo.cs
│ │ ├── RoutedControlHostGenerator.Execute.cs
│ │ └── RoutedControlHostGenerator.cs
│ └── ViewModelControlHost
│ │ ├── Models
│ │ └── ViewModelControlHostInfo.cs
│ │ ├── ViewModelControlHostGenerator.Execute.cs
│ │ └── ViewModelControlHostGenerator.cs
├── ReactiveUI.SourceGenerators.Roslyn4120
│ └── ReactiveUI.SourceGenerators.Roslyn4120.csproj
├── ReactiveUI.SourceGenerators.Roslyn480
│ └── ReactiveUI.SourceGenerators.Roslyn480.csproj
├── ReactiveUI.SourceGenerators.sln
├── ReactiveUI.SourceGenerators
│ ├── Properties
│ │ └── launchSettings.json
│ └── ReactiveUI.SourceGenerators.csproj
├── TestApps
│ ├── TestAvaloniaApplication.Desktop
│ │ ├── Program.cs
│ │ ├── TestAvaloniaApplication.Desktop.csproj
│ │ └── app.manifest
│ ├── TestAvaloniaApplication
│ │ ├── App.axaml
│ │ ├── App.axaml.cs
│ │ ├── Assets
│ │ │ └── avalonia-logo.ico
│ │ ├── TestAvaloniaApplication.csproj
│ │ ├── ViewModels
│ │ │ ├── MainViewModel.cs
│ │ │ └── ViewModelBase.cs
│ │ └── Views
│ │ │ ├── MainView.axaml
│ │ │ ├── MainView.axaml.cs
│ │ │ ├── MainWindow.axaml
│ │ │ └── MainWindow.axaml.cs
│ ├── TestMauiApplication
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── AppShell.xaml
│ │ ├── AppShell.xaml.cs
│ │ ├── MainPage.xaml
│ │ ├── MainPage.xaml.cs
│ │ ├── MainViewModel.cs
│ │ ├── MauiProgram.cs
│ │ ├── Platforms
│ │ │ ├── Android
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── MainActivity.cs
│ │ │ │ ├── MainApplication.cs
│ │ │ │ └── Resources
│ │ │ │ │ └── values
│ │ │ │ │ └── colors.xml
│ │ │ ├── MacCatalyst
│ │ │ │ ├── AppDelegate.cs
│ │ │ │ ├── Entitlements.plist
│ │ │ │ ├── Info.plist
│ │ │ │ └── Program.cs
│ │ │ ├── Tizen
│ │ │ │ ├── Main.cs
│ │ │ │ └── tizen-manifest.xml
│ │ │ ├── Windows
│ │ │ │ ├── App.xaml
│ │ │ │ ├── App.xaml.cs
│ │ │ │ ├── Package.appxmanifest
│ │ │ │ └── app.manifest
│ │ │ └── iOS
│ │ │ │ ├── AppDelegate.cs
│ │ │ │ ├── Info.plist
│ │ │ │ ├── Program.cs
│ │ │ │ └── Resources
│ │ │ │ └── PrivacyInfo.xcprivacy
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── Resources
│ │ │ ├── AppIcon
│ │ │ │ ├── appicon.svg
│ │ │ │ └── appiconfg.svg
│ │ │ ├── Fonts
│ │ │ │ ├── OpenSans-Regular.ttf
│ │ │ │ └── OpenSans-Semibold.ttf
│ │ │ ├── Images
│ │ │ │ └── dotnet_bot.png
│ │ │ ├── Raw
│ │ │ │ └── AboutAssets.txt
│ │ │ ├── Splash
│ │ │ │ └── splash.svg
│ │ │ └── Styles
│ │ │ │ ├── Colors.xaml
│ │ │ │ └── Styles.xaml
│ │ └── TestMauiApplication.csproj
│ ├── TestWinFormsApplication
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.cs
│ │ ├── MainViewModel.cs
│ │ ├── Program.cs
│ │ └── TestWinFormsApplication.csproj
│ └── TestWpfApplication
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── AssemblyInfo.cs
│ │ ├── MainViewModel.cs
│ │ ├── MainWindow.xaml
│ │ ├── MainWindow.xaml.cs
│ │ └── TestWpfApplication.csproj
└── stylecop.json
└── version.json
/.github/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "extends": ["local>reactiveui/.github:renovate"]
4 | }
5 |
--------------------------------------------------------------------------------
/.github/workflows/ci-build.yml:
--------------------------------------------------------------------------------
1 | name: Build
2 |
3 | on:
4 | push:
5 | branches: [ main ]
6 | pull_request:
7 | branches: [ main ]
8 |
9 | env:
10 | productNamespacePrefix: "SourceGenerators"
11 |
12 | jobs:
13 | build:
14 | uses: reactiveui/actions-common/.github/workflows/workflow-common-setup-and-build.yml@main
15 | with:
16 | configuration: Release
17 | productNamespacePrefix: "SourceGenerators"
18 | installWorkflows: true
19 |
--------------------------------------------------------------------------------
/.github/workflows/lock.yml:
--------------------------------------------------------------------------------
1 | name: 'Lock Threads'
2 |
3 | on:
4 | schedule:
5 | - cron: '0 0 * * *'
6 | workflow_dispatch:
7 |
8 | permissions:
9 | issues: write
10 | pull-requests: write
11 |
12 | concurrency:
13 | group: lock
14 |
15 | jobs:
16 | action:
17 | runs-on: ubuntu-latest
18 | steps:
19 | - uses: dessant/lock-threads@v5
20 | with:
21 | github-token: ${{ github.token }}
22 | issue-inactive-days: '14'
23 | pr-inactive-days: '14'
24 | issue-comment: >
25 | This issue has been automatically locked since there
26 | has not been any recent activity after it was closed.
27 | Please open a new issue for related bugs.
28 | pr-comment: >
29 | This pull request has been automatically locked since there
30 | has not been any recent activity after it was closed.
31 | Please open a new issue for related bugs.
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | name: Release
2 |
3 | on:
4 | push:
5 | branches: [ main ]
6 |
7 | env:
8 | productNamespacePrefix: "SourceGenerators"
9 |
10 | jobs:
11 | release:
12 | uses: reactiveui/actions-common/.github/workflows/workflow-common-release.yml@main
13 | with:
14 | configuration: Release
15 | productNamespacePrefix: "SourceGenerators"
16 | installWorkflows: true
17 | secrets:
18 | SIGN_ACCOUNT_NAME: ${{ secrets.SIGN_ACCOUNT_NAME }}
19 | SIGN_PROFILE_NAME: ${{ secrets.SIGN_PROFILE_NAME }}
20 | AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
21 | AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
22 | AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
23 | NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
24 |
--------------------------------------------------------------------------------
/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reactiveui/ReactiveUI.SourceGenerators/a09065e50e01261f6df3ab8137b115f3f084180a/images/logo.png
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/DERIVEDLIST/BindableDerivedListGeneratorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.BindableDerivedListAttribute.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: ReactiveUI.SourceGenerators.BindableDerivedListAttribute.g.cs
2 | // Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
3 | // Licensed to the .NET Foundation under one or more agreements.
4 | // The .NET Foundation licenses this file to you under the MIT license.
5 | // See the LICENSE file in the project root for full license information.
6 |
7 | using System;
8 |
9 | //
10 | #pragma warning disable
11 | #nullable enable
12 | namespace ReactiveUI.SourceGenerators;
13 |
14 | ///
15 | /// ReactiveAttribute.
16 | ///
17 | ///
18 | [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
19 | internal sealed class BindableDerivedListAttribute : Attribute;
20 | #nullable restore
21 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/ModuleInitializer.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025 ReactiveUI and contributors. All rights reserved.
2 | // Licensed to the ReactiveUI and contributors under one or more agreements.
3 | // The ReactiveUI and contributors licenses this file to you under the MIT license.
4 | // See the LICENSE file in the project root for full license information.
5 |
6 | using System.Runtime.CompilerServices;
7 |
8 | ///
9 | /// Initializes the source generator verifiers.
10 | ///
11 | public static class ModuleInitializer
12 | {
13 | ///
14 | /// Initializes the source generators.
15 | ///
16 | [ModuleInitializer]
17 | public static void Init() => VerifySourceGenerators.Initialize();
18 | }
19 |
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.cs
2 | // Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
3 | // Licensed to the .NET Foundation under one or more agreements.
4 | // The .NET Foundation licenses this file to you under the MIT license.
5 | // See the LICENSE file in the project root for full license information.
6 |
7 | using System;
8 |
9 | //
10 | #pragma warning disable
11 | #nullable enable
12 | namespace ReactiveUI.SourceGenerators;
13 |
14 | ///
15 | /// ObservableAsPropertyAttribute.
16 | ///
17 | ///
18 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19 | internal sealed class ObservableAsPropertyAttribute : Attribute
20 | {
21 | ///
22 | /// Gets the name of the property.
23 | ///
24 | ///
25 | /// The name of the property.
26 | ///
27 | public string? PropertyName { get; init; }
28 |
29 | ///
30 | /// Gets the Readonly state of the OAPH property.
31 | ///
32 | ///
33 | /// The is read only of the OAPH property.
34 | ///
35 | public bool ReadOnly { get; init; } = true;
36 |
37 | ///
38 | /// Gets the AccessModifier of the OAPH property.
39 | ///
40 | ///
41 | /// The AccessModifier of the OAPH property, protected if true.
42 | ///
43 | public bool UseProtected { get; init; } = false;
44 |
45 | ///
46 | /// Gets the Initial value of the OAPH property.
47 | ///
48 | ///
49 | /// The initial value of the OAPH property.
50 | ///
51 | public string? InitialValue { get; init; }
52 | }
53 | #nullable restore
54 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromField#TestNs.TestVM.ObservableAsProperties.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsProperties.g.cs
2 | //
3 | #pragma warning disable
4 | #nullable enable
5 | namespace TestNs
6 | {
7 | ///
8 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
9 | ///
10 | public partial class TestVM
11 | {
12 | ///
13 | private readonly ReactiveUI.ObservableAsPropertyHelper _testPropertyHelper;
14 |
15 | ///
16 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
17 | [global::System.Runtime.Serialization.DataMemberAttribute()]
18 | [global::System.Text.Json.Serialization.JsonIncludeAttribute()]
19 | public double? TestProperty { get => _testProperty = (_testPropertyHelper == null ? _testProperty : _testPropertyHelper.Value); }
20 | }
21 | }
22 | #nullable restore
23 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethods#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.cs
2 | // Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
3 | // Licensed to the .NET Foundation under one or more agreements.
4 | // The .NET Foundation licenses this file to you under the MIT license.
5 | // See the LICENSE file in the project root for full license information.
6 |
7 | using System;
8 |
9 | //
10 | #pragma warning disable
11 | #nullable enable
12 | namespace ReactiveUI.SourceGenerators;
13 |
14 | ///
15 | /// ObservableAsPropertyAttribute.
16 | ///
17 | ///
18 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19 | internal sealed class ObservableAsPropertyAttribute : Attribute
20 | {
21 | ///
22 | /// Gets the name of the property.
23 | ///
24 | ///
25 | /// The name of the property.
26 | ///
27 | public string? PropertyName { get; init; }
28 |
29 | ///
30 | /// Gets the Readonly state of the OAPH property.
31 | ///
32 | ///
33 | /// The is read only of the OAPH property.
34 | ///
35 | public bool ReadOnly { get; init; } = true;
36 |
37 | ///
38 | /// Gets the AccessModifier of the OAPH property.
39 | ///
40 | ///
41 | /// The AccessModifier of the OAPH property, protected if true.
42 | ///
43 | public bool UseProtected { get; init; } = false;
44 |
45 | ///
46 | /// Gets the Initial value of the OAPH property.
47 | ///
48 | ///
49 | /// The initial value of the OAPH property.
50 | ///
51 | public string? InitialValue { get; init; }
52 | }
53 | #nullable restore
54 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethods#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | ///
11 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
12 | ///
13 | public partial class TestVM
14 | {
15 | ///
16 | private int _test2Property;
17 |
18 | ///
19 | private ReactiveUI.ObservableAsPropertyHelper? _test2PropertyHelper;
20 |
21 | ///
22 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
23 | public int Test2Property { get => _test2Property = _test2PropertyHelper?.Value ?? _test2Property; }
24 |
25 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
26 | protected void InitializeOAPH()
27 | {
28 | _test2PropertyHelper = Test2()!.ToProperty(this, nameof(Test2Property));
29 | }
30 | }
31 | }
32 | #nullable restore
33 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethodsWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.cs
2 | // Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
3 | // Licensed to the .NET Foundation under one or more agreements.
4 | // The .NET Foundation licenses this file to you under the MIT license.
5 | // See the LICENSE file in the project root for full license information.
6 |
7 | using System;
8 |
9 | //
10 | #pragma warning disable
11 | #nullable enable
12 | namespace ReactiveUI.SourceGenerators;
13 |
14 | ///
15 | /// ObservableAsPropertyAttribute.
16 | ///
17 | ///
18 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19 | internal sealed class ObservableAsPropertyAttribute : Attribute
20 | {
21 | ///
22 | /// Gets the name of the property.
23 | ///
24 | ///
25 | /// The name of the property.
26 | ///
27 | public string? PropertyName { get; init; }
28 |
29 | ///
30 | /// Gets the Readonly state of the OAPH property.
31 | ///
32 | ///
33 | /// The is read only of the OAPH property.
34 | ///
35 | public bool ReadOnly { get; init; } = true;
36 |
37 | ///
38 | /// Gets the AccessModifier of the OAPH property.
39 | ///
40 | ///
41 | /// The AccessModifier of the OAPH property, protected if true.
42 | ///
43 | public bool UseProtected { get; init; } = false;
44 |
45 | ///
46 | /// Gets the Initial value of the OAPH property.
47 | ///
48 | ///
49 | /// The initial value of the OAPH property.
50 | ///
51 | public string? InitialValue { get; init; }
52 | }
53 | #nullable restore
54 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethodsWithName#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | ///
11 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
12 | ///
13 | public partial class TestVM
14 | {
15 | ///
16 | private int _test3Property;
17 |
18 | ///
19 | private ReactiveUI.ObservableAsPropertyHelper? _test3PropertyHelper;
20 |
21 | ///
22 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
23 | public int Test3Property { get => _test3Property = _test3PropertyHelper?.Value ?? _test3Property; }
24 |
25 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
26 | protected void InitializeOAPH()
27 | {
28 | _test3PropertyHelper = Test3()!.ToProperty(this, nameof(Test3Property));
29 | }
30 | }
31 | }
32 | #nullable restore
33 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableProp#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.cs
2 | // Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
3 | // Licensed to the .NET Foundation under one or more agreements.
4 | // The .NET Foundation licenses this file to you under the MIT license.
5 | // See the LICENSE file in the project root for full license information.
6 |
7 | using System;
8 |
9 | //
10 | #pragma warning disable
11 | #nullable enable
12 | namespace ReactiveUI.SourceGenerators;
13 |
14 | ///
15 | /// ObservableAsPropertyAttribute.
16 | ///
17 | ///
18 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
19 | internal sealed class ObservableAsPropertyAttribute : Attribute
20 | {
21 | ///
22 | /// Gets the name of the property.
23 | ///
24 | ///
25 | /// The name of the property.
26 | ///
27 | public string? PropertyName { get; init; }
28 |
29 | ///
30 | /// Gets the Readonly state of the OAPH property.
31 | ///
32 | ///
33 | /// The is read only of the OAPH property.
34 | ///
35 | public bool ReadOnly { get; init; } = true;
36 |
37 | ///
38 | /// Gets the AccessModifier of the OAPH property.
39 | ///
40 | ///
41 | /// The AccessModifier of the OAPH property, protected if true.
42 | ///
43 | public bool UseProtected { get; init; } = false;
44 |
45 | ///
46 | /// Gets the Initial value of the OAPH property.
47 | ///
48 | ///
49 | /// The initial value of the OAPH property.
50 | ///
51 | public string? InitialValue { get; init; }
52 | }
53 | #nullable restore
54 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableProp#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | ///
11 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
12 | ///
13 | public partial class TestVM
14 | {
15 | ///
16 | private int _test1Property;
17 |
18 | ///
19 | private ReactiveUI.ObservableAsPropertyHelper? _test1PropertyHelper;
20 |
21 | ///
22 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
23 | public int Test1Property { get => _test1Property = _test1PropertyHelper?.Value ?? _test1Property; }
24 |
25 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
26 | protected void InitializeOAPH()
27 | {
28 | _test1PropertyHelper = Test1!.ToProperty(this, nameof(Test1Property));
29 | }
30 | }
31 | }
32 | #nullable restore
33 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM+TestVMInner1.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM+TestVMInner1.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | public partial class TestVM
11 | {
12 | ///
13 | /// Partial class for the TestVMInner1 which contains ReactiveUI Observable As Property initialization.
14 | ///
15 | public partial class TestVMInner1
16 | {
17 | ///
18 | private int _testIn1Property;
19 |
20 | ///
21 | private ReactiveUI.ObservableAsPropertyHelper? _testIn1PropertyHelper;
22 |
23 | ///
24 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
25 | public int TestIn1Property { get => _testIn1Property = _testIn1PropertyHelper?.Value ?? _testIn1Property; }
26 |
27 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
28 | protected void InitializeOAPH()
29 | {
30 | _testIn1PropertyHelper = TestIn1!.ToProperty(this, nameof(TestIn1Property));
31 | }
32 | }
33 | }
34 |
35 | }
36 | #nullable restore
37 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM+TestVMInner2+TestVMInner3.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM+TestVMInner2+TestVMInner3.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | public partial class TestVM
11 | {
12 | public partial class TestVMInner2
13 | {
14 | ///
15 | /// Partial class for the TestVMInner3 which contains ReactiveUI Observable As Property initialization.
16 | ///
17 | public partial class TestVMInner3
18 | {
19 | ///
20 | private int _testIn3Property;
21 |
22 | ///
23 | private ReactiveUI.ObservableAsPropertyHelper? _testIn3PropertyHelper;
24 |
25 | ///
26 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
27 | public int TestIn3Property { get => _testIn3Property = _testIn3PropertyHelper?.Value ?? _testIn3Property; }
28 |
29 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
30 | protected void InitializeOAPH()
31 | {
32 | _testIn3PropertyHelper = TestIn3!.ToProperty(this, nameof(TestIn3Property));
33 | }
34 | }
35 | }
36 | }
37 |
38 | }
39 | #nullable restore
40 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM+TestVMInner2.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM+TestVMInner2.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | public partial class TestVM
11 | {
12 | ///
13 | /// Partial class for the TestVMInner2 which contains ReactiveUI Observable As Property initialization.
14 | ///
15 | public partial class TestVMInner2
16 | {
17 | ///
18 | private int _testIn2Property;
19 |
20 | ///
21 | private ReactiveUI.ObservableAsPropertyHelper? _testIn2PropertyHelper;
22 |
23 | ///
24 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
25 | public int TestIn2Property { get => _testIn2Property = _testIn2PropertyHelper?.Value ?? _testIn2Property; }
26 |
27 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
28 | protected void InitializeOAPH()
29 | {
30 | _testIn2PropertyHelper = TestIn2!.ToProperty(this, nameof(TestIn2Property));
31 | }
32 | }
33 | }
34 |
35 | }
36 | #nullable restore
37 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | ///
11 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
12 | ///
13 | public partial class TestVM
14 | {
15 | ///
16 | private int _test1Property;
17 |
18 | ///
19 | private ReactiveUI.ObservableAsPropertyHelper? _test1PropertyHelper;
20 |
21 | ///
22 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
23 | public int Test1Property { get => _test1Property = _test1PropertyHelper?.Value ?? _test1Property; }
24 |
25 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
26 | protected void InitializeOAPH()
27 | {
28 | _test1PropertyHelper = Test1!.ToProperty(this, nameof(Test1Property));
29 | }
30 | }
31 | }
32 | #nullable restore
33 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttribute#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | ///
11 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
12 | ///
13 | public partial class TestVM
14 | {
15 | ///
16 | private int _test5Property;
17 |
18 | ///
19 | private ReactiveUI.ObservableAsPropertyHelper? _test5PropertyHelper;
20 |
21 | ///
22 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
23 | [global::System.Runtime.Serialization.DataMemberAttribute()]
24 | [global::System.Text.Json.Serialization.JsonIncludeAttribute()]
25 | public int Test5Property { get => _test5Property = _test5PropertyHelper?.Value ?? _test5Property; }
26 |
27 | [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
28 | protected void InitializeOAPH()
29 | {
30 | _test5PropertyHelper = Test5!.ToProperty(this, nameof(Test5Property));
31 | }
32 | }
33 | }
34 | #nullable restore
35 | #pragma warning restore
--------------------------------------------------------------------------------
/src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeNullableRef#TestNs.TestVM.ObservableAsPropertyFromObservable.g.verified.cs:
--------------------------------------------------------------------------------
1 | //HintName: TestNs.TestVM.ObservableAsPropertyFromObservable.g.cs
2 | //
3 | using ReactiveUI;
4 |
5 | #pragma warning disable
6 | #nullable enable
7 |
8 | namespace TestNs
9 | {
10 | ///
11 | /// Partial class for the TestVM which contains ReactiveUI Observable As Property initialization.
12 | ///
13 | public partial class TestVM
14 | {
15 | ///
16 | private object? _test7Property;
17 |
18 | ///
19 | private ReactiveUI.ObservableAsPropertyHelper