Skip to content

[appserver-io/doppelgaenger] Several comment blocks break docBlock assignment #824

@wick-ed

Description

@wick-ed

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions