throwOperationError method

Never throwOperationError(
  1. String op,
  2. ASTType t1,
  3. ASTType t2
)

Implementation

Never throwOperationError(String op, ASTType t1, ASTType t2) {
  var message = "Can't perform '$op' operation with types: $t1 $op $t2";

  if (t1 is ASTTypeNull || t2 is ASTTypeNull) {
    throw ApolloVMNullPointerException(message);
  }

  throw UnsupportedError(message);
}