Closed thekid closed 2 years ago
Fix is to position the line correctly after emitting the comment.
$result->out->write($comment->declaration);
$result->line+= substr_count($comment->declaration, "\n"); // <-- This!
Fix released in https://github.com/xp-framework/compiler/releases/tag/v8.3.0
This ends up positioning the
class
token 5 lines under the end of the doc comment.