When I flew YYZ-DUB with a stop in SNN it was credited as a single segement with what I think was the YYZ-DUB mileage rather then YYZ-SNN-DUB (there's not much in the difference). That was a single plane with one boarding pass and we didn't get off the plane.