IMHO inline functions should be at the top of the method body, behind the var declarations, so they are easier to find and do not break the flow of the normal code.