Skip to content

Commit a312e3f

Browse files
committed
chore: Adjust formatting, unused method
1 parent dd0ae93 commit a312e3f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/NameScope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal record NameScope(ImmutableStack<NameScope> Parents, string FileUniqueId
2323
/// Name of the root class for all sub-classes
2424
/// </summary>
2525
/// <remarks>All sub-classes will be generated nested to this class, which is flagged with CreateNewOnMetadataUpdate attribute to avoid issues with HR.</remarks>
26-
public string SubClassesRoot => $"__{FileUniqueId}_{string.Join("_", [Name, ..Parents.Select(scope => scope.Name)])}";
26+
public string SubClassesRoot => $"__{FileUniqueId}_{string.Join("_", [Name, .. Parents.Select(scope => scope.Name)])}";
2727

2828
/// <summary>
2929
/// Used to detect duplicate x:Name and report error for those.

src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ private INamedTypeSymbol? CurrentStyleTargetType
186186

187187
private const string DictionaryProviderInterfaceName = "global::Uno.UI.IXamlResourceDictionaryProvider";
188188

189-
private string RoField(string type, string name)
190-
=> _isHotReloadEnabled
191-
? $"private {type} {name} {{ get; }}"
192-
: $"private readonly {type} {name};";
193189
private string Field(string type, string name)
194190
=> $"private {type} {name} {(_isHotReloadEnabled ? "{ get; set; }" : ";")}";
195191

0 commit comments

Comments
 (0)