Skip to content

Commit d063715

Browse files
committed
Checkpoint commit
1 parent cc95e34 commit d063715

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

CommunityToolkit.Tooling.SampleGen.Tests/Helpers/SourceGeneratorRunResult.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using Microsoft.CodeAnalysis;
6+
using System.Collections.Immutable;
67

78
namespace CommunityToolkit.Tooling.SampleGen.Tests.Helpers;
89

CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.Compilation.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using Microsoft.CodeAnalysis;
66
using Microsoft.CodeAnalysis.CSharp;
7+
using System.Collections.Immutable;
78

89
namespace CommunityToolkit.Tooling.SampleGen.Tests.Helpers;
910

CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.CodeAnalysis;
22
using Microsoft.VisualStudio.TestTools.UnitTesting;
3+
using System.Collections.Immutable;
34

45
namespace CommunityToolkit.Tooling.SampleGen.Tests.Helpers;
56

CommunityToolkit.Tooling.SampleGen.Tests/ToolkitSampleGeneratedPaneTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public class UserControl {{ }}
414414
// Create application head that references generated sample project
415415
var headCompilation = string.Empty
416416
.ToSyntaxTree()
417-
.CreateCompilation("MyApp.Head")
417+
.CreateCompilation("CommunityToolkit.App.Head")
418418
.AddReferences(sampleProjectAssembly);
419419

420420
// Run source generator

CommunityToolkit.Tooling.SampleGen/Metadata/ToolkitSampleButtonActionMetadataViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ToolkitSampleButtonActionMetadataViewModel(string name, string label, str
4343
public string Name { get; }
4444

4545
/// <summary>
46-
/// The current boolean value.
46+
/// The current command value.
4747
/// </summary>
4848
/// <remarks>
4949
/// Provided to accomodate binding to a property that is a non-nullable <see cref="bool"/>.
@@ -60,12 +60,12 @@ public ICommand CommandValue
6060
}
6161

6262
/// <summary>
63-
/// The current boolean value.
63+
/// The current value.
6464
/// </summary>
6565
public object? Value
6666
{
6767
get => _value;
68-
set
68+
set
6969
{
7070
_value = value;
7171
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Value)));

CommunityToolkit.Tooling.SampleGen/ToolkitSampleMetadataGenerator.Sample.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Microsoft.CodeAnalysis;
99
using Microsoft.CodeAnalysis.CSharp;
1010
using Microsoft.CodeAnalysis.CSharp.Syntax;
11-
using Microsoft.CodeAnalysis.Text;
1211

1312
namespace CommunityToolkit.Tooling.SampleGen;
1413

@@ -315,7 +314,7 @@ private static IEnumerable<string> BuildNewGeneratedSampleOptionMetadataSource(T
315314
}
316315
else if (item is ToolkitSampleButtonActionAttribute buttonAttribute)
317316
{
318-
yield return $@"new {typeof(ToolkitSampleButtonActionMetadataViewModel).FullName}(name: ""{buttonAttribute.Name}"", controlToBindingValueFactory: x => x.{buttonAttribute.Name}Command, label: ""{buttonAttribute.Label}"", title: ""{buttonAttribute.Title}"")";
317+
yield return $@"new {typeof(ToolkitSampleButtonActionMetadataViewModel).FullName}(name: ""{buttonAttribute.Name}"", label: ""{buttonAttribute.Label}"", title: ""{buttonAttribute.Title}"")";
319318
}
320319
else if (item is ToolkitSampleNumericOptionAttribute numericAttribute)
321320
{

0 commit comments

Comments
 (0)