コード例 #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));
        }