mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 10:35:27 +08:00 
			
		
		
		
	Fix error SA1300 in full property creation
This commit is contained in:
		
				
					committed by
					
						
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							156d254208
						
					
				
				
					commit
					322ed2efbb
				
			@@ -7,6 +7,7 @@ namespace Spectre.Console;
 | 
				
			|||||||
public sealed class Tree : Renderable, IHasTreeNodes
 | 
					public sealed class Tree : Renderable, IHasTreeNodes
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    private readonly TreeNode _root;
 | 
					    private readonly TreeNode _root;
 | 
				
			||||||
 | 
					    private bool _expanded = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    /// Gets or sets the tree style.
 | 
					    /// Gets or sets the tree style.
 | 
				
			||||||
@@ -23,7 +24,6 @@ public sealed class Tree : Renderable, IHasTreeNodes
 | 
				
			|||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
    public List<TreeNode> Nodes => _root.Nodes;
 | 
					    public List<TreeNode> Nodes => _root.Nodes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private bool _expanded { get; set; } = true;
 | 
					 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    /// Gets or sets a value indicating whether or not the tree is expanded or not.
 | 
					    /// Gets or sets a value indicating whether or not the tree is expanded or not.
 | 
				
			||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
@@ -36,7 +36,6 @@ public sealed class Tree : Renderable, IHasTreeNodes
 | 
				
			|||||||
            _root.Expand(value);
 | 
					            _root.Expand(value);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    /// Initializes a new instance of the <see cref="Tree"/> class.
 | 
					    /// Initializes a new instance of the <see cref="Tree"/> class.
 | 
				
			||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user