Don't.
Or at least, glue it all back together while you figure out the issue. I'm not sure what the IDE does precisely, but I recall that it takes all your ino files and combines them (in alphabetical order?) so it may be confused as to where the error is.
Maybe consider using cpp files to separate code instead?