You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protocolP{
/// docs for P.m
func m()}
/// docs for S
structS:P{func m(){}}
SourceKitten reports doc.comment for S.m as "docs for S".
This happens because SourceKit produces full_as_xml for S.m from inherited P.m. So SyntaxMap.commentRange(beforeOffset:) scans back and finds the "docs for S" comment.
Would you consider accepting a PR to add some code along the lines of that removed by 114abc1 to detect this scenario?
(I do not think this is related to #269: the full_as_xml being present is enough to trigger.)
The text was updated successfully, but these errors were encountered:
Latest code; Xcode 832. This goes wrong:
SourceKitten reports doc.comment for S.m as "docs for S".
This happens because SourceKit produces full_as_xml for S.m from inherited P.m. So
SyntaxMap.commentRange(beforeOffset:)
scans back and finds the "docs for S" comment.Would you consider accepting a PR to add some code along the lines of that removed by 114abc1 to detect this scenario?
(I do not think this is related to #269: the full_as_xml being present is enough to trigger.)
The text was updated successfully, but these errors were encountered: