Class TypeVisitorOperatorCalculator


  • public class TypeVisitorOperatorCalculator
    extends java.lang.Object
    Implementation of common operators for type visitors, e.g., multiply, add, etc. Implemented here, as some logic is reusable across multiple TypeVisitors, e.g. CommonExpressions, OptionalOperators, AssignmentExpressions, ... Additionally, common logic is shared between the Operators.

    Return values are empty if the operation is not applicable to the types, no error message will be logged. Return values are not SymTypeOfObscure to make sure that this case is not ignored.