Exemplo n.º 1
0
        private Types.Type VisitUnaryExpectedType(IUnary node, Types.Type expectedType)
        {
            Types.Type childType = node.GetChildExpression().Accept(this);

            if (childType.IsEqual(expectedType))
            {
                collectedNotifications.Add(new IncompatibleUnaryOperator(node.GetPosition(), node.MakeString(), childType.GetString()));
            }

            return(expectedType);
        }
Exemplo n.º 2
0
 private Types.Type VisitUnary(IUnary node)
 {
     return(node.GetChildExpression().Accept(this));
 }
Exemplo n.º 3
0
 private IList <Id> VisitUnary(IUnary node)
 {
     return(node.GetChildExpression().Accept(this));
 }