File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/SourceKitLSP/Documentation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,18 +111,18 @@ extension DocumentationLanguageService {
111
111
}
112
112
113
113
struct MarkdownTitleFinder : MarkupVisitor {
114
- public enum Title {
114
+ enum Title {
115
115
case plainText( String )
116
116
case symbol( String )
117
117
}
118
118
119
- public static func find( parsing text: String ) -> Title ? {
119
+ static func find( parsing text: String ) -> Title ? {
120
120
let document = Markdown . Document ( parsing: text, options: [ . parseSymbolLinks] )
121
121
var visitor = MarkdownTitleFinder ( )
122
122
return visitor. visit ( document)
123
123
}
124
124
125
- public mutating func defaultVisit( _ markup: any Markup ) -> Title ? {
125
+ mutating func defaultVisit( _ markup: any Markup ) -> Title ? {
126
126
for child in markup. children {
127
127
if let value = visit ( child) {
128
128
return value
@@ -131,7 +131,7 @@ struct MarkdownTitleFinder: MarkupVisitor {
131
131
return nil
132
132
}
133
133
134
- public mutating func visitHeading( _ heading: Heading ) -> Title ? {
134
+ mutating func visitHeading( _ heading: Heading ) -> Title ? {
135
135
guard heading. level == 1 else {
136
136
return nil
137
137
}
You can’t perform that action at this time.
0 commit comments