@@ -19,7 +19,8 @@ enum class SwiftExtractionMode { Module, PrimaryFile };
1919// node (AST nodes that are not types: declarations, statements, expressions, etc.).
2020class SwiftDispatcher {
2121 public:
22- // all references passed as parameters to this constructor are supposed to outlive the SwiftDispatcher
22+ // all references passed as parameters to this constructor are supposed to outlive the
23+ // SwiftDispatcher
2324 SwiftDispatcher (const swift::SourceManager& sourceManager,
2425 TrapArena& arena,
2526 TrapOutput& trap,
@@ -137,9 +138,11 @@ class SwiftDispatcher {
137138 // Depending on the SwiftExtractionMode the scope is defined as follows:
138139 // - SwiftExtractionMode::Module: the current scope means the current module. This is used in
139140 // the case of system or builtin modules.
140- // - SwiftExtractionMode::PrimaryFile: in this mode, we extract several files belnoging to the
141- // same module one by one. In this mode, the restrict emission only to the same file ignoring
141+ // - SwiftExtractionMode::PrimaryFile: in this mode, we extract several files belonging to the
142+ // same module one by one. In this mode, we restrict emission only to the same file ignoring
142143 // all the other files.
144+ // TODO this currently does not extract compiler-synthesized entities without a valid location,
145+ // this will be fixed in an upcoming PR
143146 bool shouldEmitDeclBody (swift::Decl* decl) {
144147 switch (extractionMode) {
145148 case SwiftExtractionMode::Module: {
0 commit comments