|
|
|
@ -43,6 +43,8 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
@@ -43,6 +43,8 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
|
|
|
|
|
currentList.Add(node); |
|
|
|
|
nodes.Push(currentList); |
|
|
|
|
currentList = new List<AstNode>(); |
|
|
|
|
} else if (node is Comment comment) { |
|
|
|
|
comment.SetStartLocation(locationProvider.Location); |
|
|
|
|
} |
|
|
|
|
base.StartNode(node); |
|
|
|
|
} |
|
|
|
@ -62,6 +64,8 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
@@ -62,6 +64,8 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
|
|
|
|
|
node.AddChildWithExistingRole(child); |
|
|
|
|
} |
|
|
|
|
currentList = nodes.Pop(); |
|
|
|
|
} else if (node is Comment comment) { |
|
|
|
|
comment.SetEndLocation(locationProvider.Location); |
|
|
|
|
} |
|
|
|
|
base.EndNode(node); |
|
|
|
|
} |
|
|
|
|