1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)
5
using System.Collections.Generic;
7
using Debugger.AddIn.Visualizers.Graph.Layout;
8
using ICSharpCode.NRefactory.Ast;
11
namespace Debugger.AddIn.Visualizers.Graph
14
/// Remembers which properties the user has expanded in the <see cref="PositionedGraph">.
16
public class ExpandedExpressions
18
private ExpandedPaths expanded = new ExpandedPaths();
20
public ExpandedExpressions()
24
public bool IsExpanded(Expression expression)
26
return expanded.IsExpanded(expression.PrettyPrint());
29
public void SetExpanded(Expression expression)
31
expanded.SetExpanded(expression.PrettyPrint());
34
public void SetCollapsed(Expression expression)
36
expanded.SetCollapsed(expression.PrettyPrint());