The method for assigning a found comment block to a construct (such as a function or class) currently works with a distance check based on token counts. As a complete comment block is only one token several of these blocks can be assigned to the same construct as they seem to be near it.
Assignment should rather go the other way by testing for the NEAREST comment block in regards to a construct header.
The method for assigning a found comment block to a construct (such as a function or class) currently works with a distance check based on token counts. As a complete comment block is only one token several of these blocks can be assigned to the same construct as they seem to be near it.
Assignment should rather go the other way by testing for the NEAREST comment block in regards to a construct header.