Skip to content

Commit b3bd8e1

Browse files
committed
Minor clean to remove unused field from ImportedClass
1 parent 99e9ba1 commit b3bd8e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/JExtractSwift/ImportedDecls.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public struct ImportedProtocol: ImportedDecl {
2828
public struct ImportedClass: ImportedDecl {
2929
public var name: ImportedTypeName
3030

31-
public var implementedInterfaces: Set<ImportedTypeName> = []
32-
3331
public var initializers: [ImportedFunc] = []
3432
public var methods: [ImportedFunc] = []
3533

@@ -126,6 +124,8 @@ public struct ImportedFunc: ImportedDecl, CustomStringConvertible {
126124
/// This is a full name such as init(cap:name:).
127125
public var identifier: String
128126

127+
/// This is the base identifier for the function, e.g., "init" for an
128+
/// initializer or "f" for "f(a:b:)".
129129
public var baseIdentifier: String {
130130
guard let idx = identifier.firstIndex(of: "(") else {
131131
return identifier
@@ -134,7 +134,7 @@ public struct ImportedFunc: ImportedDecl, CustomStringConvertible {
134134
}
135135

136136
/// A display name to use to refer to the Swift declaration with its
137-
/// enclosing type.
137+
/// enclosing type, if there is one.
138138
public var displayName: String {
139139
if let parentName {
140140
return "\(parentName.swiftTypeName).\(identifier)"

0 commit comments

Comments
 (0)