Example #1
0
 //Expression
 public override IList <Id> Visit(IBinary node) //Is this a hack?
 {
     return(node.Left()
            .Accept(this)
            .Concat(
                node.Right()
                .Accept(this)
                ).ToList());
 }
Example #2
0
 private IList <Id> VisitBinary(IBinary node)
 {
     return(node.Left()
            .Accept(this)
            .Concat(
                node.Right()
                .Accept(this)
                ).ToList());
 }
Example #3
0
        private Types.Type VisitBinaryEqualTypes(IBinary node)
        {
            Types.Type left  = node.Left().Accept(this);
            Types.Type right = node.Right().Accept(this);

            if (!left.IsEqual(right))
            {
                collectedNotifications.Add(new IncompatibleBinaryOperator(node.GetPosition(), node.MakeString(), left.GetString(), right.GetString()));
            }

            return(left);
        }