File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/SymbolKit/SymbolGraph/Symbol Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -342,11 +342,11 @@ extension SymbolGraph.Symbol {
342
342
public static func isKnownIdentifier( _ identifier: String ) -> Bool {
343
343
let kind : KindIdentifier ?
344
344
345
- if let cachedDetail = Self . lookupIdentifier ( identifier: identifier) {
345
+ if let cachedDetail = KindIdentifier . lookupIdentifier ( identifier: identifier) {
346
346
kind = cachedDetail
347
347
} else {
348
348
let cleanIdentifier = KindIdentifier . cleanIdentifier ( identifier)
349
- kind = Self . lookupIdentifier ( identifier: cleanIdentifier)
349
+ kind = KindIdentifier . lookupIdentifier ( identifier: cleanIdentifier)
350
350
}
351
351
352
352
return kind != nil
@@ -360,14 +360,14 @@ extension SymbolGraph.Symbol {
360
360
/// - Parameter identifier: The identifier string to parse.
361
361
public init ( identifier: String ) {
362
362
// Check if the identifier matches a symbol kind directly.
363
- if let firstParse = Self . lookupIdentifier ( identifier: identifier) {
363
+ if let firstParse = KindIdentifier . lookupIdentifier ( identifier: identifier) {
364
364
self = firstParse
365
365
} else {
366
366
// For symbol graphs which include a language identifier with their symbol kinds
367
367
// (e.g. "swift.func" instead of just "func"), strip off the language prefix and
368
368
// try again.
369
369
let cleanIdentifier = KindIdentifier . cleanIdentifier ( identifier)
370
- if let secondParse = Self . lookupIdentifier ( identifier: cleanIdentifier) {
370
+ if let secondParse = KindIdentifier . lookupIdentifier ( identifier: cleanIdentifier) {
371
371
self = secondParse
372
372
} else {
373
373
// If we still don't have a match, store the whole original string.
You can’t perform that action at this time.
0 commit comments