Skip to content

Commit 72f1bc5

Browse files
author
Alexander Bothe
committed
[Resolver/Visitor] DefaultDepthFirstVisitor didn't visit a NewExpression's type if it was not an expression type
1 parent a0c30b8 commit 72f1bc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DParser2/Dom/Visitors/DefaultDepthFirstVisitor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ public virtual void Visit(Expressions.UnaryExpression_Type x)
583583
public virtual void Visit(Expressions.NewExpression x)
584584
{
585585
VisitChildren(x);
586+
if (!(x.Type is IExpression))
587+
x.Type.Accept (this);
586588
}
587589

588590
public virtual void Visit(Expressions.AnonymousClassExpression x)

0 commit comments

Comments
 (0)