Skip to content

Commit d087f65

Browse files
authored
Import DataProtocol's decl along with Data (#548)
1 parent 291fb8a commit d087f65

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/JExtractSwiftLib/Swift2JavaTranslator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ extension Swift2JavaTranslator {
110110
let dataProtocolDecl = (self.symbolTable[.foundationDataProtocol] ?? self.symbolTable[.essentialsDataProtocol])!
111111
if self.isUsing(where: { $0 == dataDecl || $0 == dataProtocolDecl }) {
112112
visitor.visit(nominalDecl: dataDecl.syntax!.asNominal!, in: nil, sourceFilePath: "Foundation/FAKE_FOUNDATION_DATA.swift")
113+
visitor.visit(nominalDecl: dataProtocolDecl.syntax!.asNominal!, in: nil, sourceFilePath: "Foundation/FAKE_FOUNDATION_DATAPROTOCOL.swift")
113114
}
114115
}
115116

0 commit comments

Comments
 (0)