-
Notifications
You must be signed in to change notification settings - Fork 98
Description
When running the swift-doc GitHub action on Sources/SwiftDoc, the resulting documentation for SourceFile
has the name "Contextual.Symbol.Extension.CompilationCondition.SourceFile".
Contextual.Symbol.Extension.CompilationCondition.SourceFile
Running this locally on macOS, I'm unable to reproduce this behavior.
This long name is a consequence of the SourceFile
declaration following declarations relating to the Contextual
protocol.
swift-doc/Sources/SwiftDoc/SourceFile.swift
Lines 7 to 14 in da04436
public protocol Contextual {} | |
extension Symbol: Contextual {} | |
extension Extension: Contextual {} | |
extension CompilationCondition: Contextual {} | |
// MARK: - | |
public struct SourceFile: Hashable, Codable { |
This should be handled by visitPost
, which pops the stack of contexts after visiting a contextual node:
swift-doc/Sources/SwiftDoc/SourceFile.swift
Lines 188 to 190 in da04436
mutating func visitPost(_ node: ExtensionDeclSyntax) { | |
assert(pop() is Extension) | |
} |
However, these delegate methods don't appear to be called on Linux for some reason.