it looks like if there are any interceding two-slash comments between a doccomment and a declaration, swift-symbolgraph-extract
will discard the doccomment, making it look as if the symbol lacks documentation. for example, in the swift-system
package:
...
/// However, the rules for path equivalence
/// are file-system–specific and have additional considerations
/// like case insensitivity, Unicode normalization, and symbolic links.
///
// TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
// components, etc.
/*System 0.0.1, @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
public struct FilePath {
but i’m only getting:
{
"kind": {
"identifier": "swift.struct",
"displayName": "Structure"
},
"identifier": {
"precise": "s:13SystemPackage8FilePathV",
"interfaceLanguage": "swift"
},
"pathComponents": [
"FilePath"
],
"names": {
"title": "FilePath",
"navigator": [
{
"kind": "identifier",
"spelling": "FilePath"
}
],
"subHeading": [
{
"kind": "keyword",
"spelling": "struct"
},
{
"kind": "text",
"spelling": " "
},
{
"kind": "identifier",
"spelling": "FilePath"
}
]
},
"declarationFragments": [
{
"kind": "keyword",
"spelling": "struct"
},
{
"kind": "text",
"spelling": " "
},
{
"kind": "identifier",
"spelling": "FilePath"
}
],
"accessLevel": "public",
"location": {
"uri": "file:///.../swift-system/Sources/System/FilePath/FilePath.swift",
"position": {
"line": 43,
"character": 14
}
}
}