//Expression public override IList <Id> Visit(IBinary node) //Is this a hack? { return(node.Left() .Accept(this) .Concat( node.Right() .Accept(this) ).ToList()); }
private IList <Id> VisitBinary(IBinary node) { return(node.Left() .Accept(this) .Concat( node.Right() .Accept(this) ).ToList()); }
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); }