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); }
private Types.Type VisitUnary(IUnary node) { return(node.GetChildExpression().Accept(this)); }
private IList <Id> VisitUnary(IUnary node) { return(node.GetChildExpression().Accept(this)); }