EPA: order of semicolons and comments for top-level decls is wrong
A comment followed by a semicolon at the top level resulted in the preceding comments being attached to the following declaration.
Capture the comments as belonging to the declaration preceding the semicolon instead.
Closes #20258 (closed)