예제 #1
0
        S IAstVisitor <T, S> .VisitObjectCreateExpression(ObjectCreateExpression objectCreateExpression, T data)
        {
            var handler = ObjectCreateExpressionVisited;

            if (handler != null)
            {
                handler(objectCreateExpression, data);
            }
            return(VisitChildren(objectCreateExpression, data));
        }
예제 #2
0
 void IAstVisitor.VisitObjectCreateExpression(ObjectCreateExpression objectCreateExpression)
 {
     Visit(EnterObjectCreateExpression, LeaveObjectCreateExpression, objectCreateExpression);
 }
예제 #3
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ObjectCreateExpression o = other as ObjectCreateExpression;

            return(o != null && this.Type.DoMatch(o.Type, match) && this.Arguments.DoMatch(o.Arguments, match) && this.Initializer.DoMatch(o.Initializer, match));
        }