24 references to TreeDumperNode
Microsoft.CodeAnalysis (22)
TreeDumper.cs (22)
67
public static string DumpCompact(
TreeDumperNode
root)
72
protected string DoDumpCompact(
TreeDumperNode
root)
78
private void DoDumpCompact(
TreeDumperNode
node, string indent)
95
var
child = children[i];
106
static bool skip(
TreeDumperNode
node)
134
public static string DumpXML(
TreeDumperNode
root, string? indent = null)
141
private void DoDumpXML(
TreeDumperNode
node, string indent, string relativeIndent)
170
foreach (
var
child in node.Children)
238
public TreeDumperNode(string text, object? value, IEnumerable<
TreeDumperNode
>? children)
242
this.Children = children ?? SpecializedCollections.EmptyEnumerable<
TreeDumperNode
>();
248
public IEnumerable<
TreeDumperNode
> Children { get; }
249
public
TreeDumperNode
? this[string child]
258
public IEnumerable<KeyValuePair<
TreeDumperNode
?,
TreeDumperNode
>> PreorderTraversal()
260
var stack = new Stack<KeyValuePair<
TreeDumperNode
?,
TreeDumperNode
>>();
261
stack.Push(new KeyValuePair<
TreeDumperNode
?,
TreeDumperNode
>(null, this));
266
var
currentNode = currentEdge.Value;
267
foreach (
var
child in currentNode.Children.Where(x => x != null).Reverse())
269
stack.Push(new KeyValuePair<
TreeDumperNode
?,
TreeDumperNode
>(currentNode, child));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (1)
3206
var
tree = BoundTreeDumperNodeProducer.MakeTree(block);
Semantics\OverloadResolutionTestBase.cs (1)
39
var
tree = BoundTreeDumperNodeProducer.MakeTree(block);