LengthFunction visitor implemented