From fba9da53cdb1bb47d3c4a011b3f6941c96d3acdb Mon Sep 17 00:00:00 2001 From: Colby McHenry Date: Mon, 6 Apr 2026 11:49:25 -0500 Subject: [PATCH] docs: Mark Swift as completed for receiver type extraction Swift methods in extension blocks are already parsed correctly by tree-sitter, which treats `extension Type { }` as `class_declaration` and automatically includes the owner type in qualified names. No getReceiverType implementation needed. --- docs/SEARCH_QUALITY_LOOP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/SEARCH_QUALITY_LOOP.md b/docs/SEARCH_QUALITY_LOOP.md index d25d1f7..6b60e56 100644 --- a/docs/SEARCH_QUALITY_LOOP.md +++ b/docs/SEARCH_QUALITY_LOOP.md @@ -174,6 +174,7 @@ if (receiverType) { ## Languages Completed - [x] **Go** — `getReceiverType` extracts receiver from `func (sl *Type) method()` +- [x] **Swift** — NOT needed. Tree-sitter parses `extension Type { }` as `class_declaration`, so methods already get owner type in `qualified_name` (e.g., `SimplifyApply.swift::SimplifyApply.swift::ApplyInst::simplify`) ## Languages To Do @@ -181,7 +182,6 @@ Check these — only add `getReceiverType` if methods are top-level (not nested - [ ] Rust — methods in `impl Type { }` blocks - [ ] C++ — out-of-class method definitions `Type::method()` -- [ ] Swift — methods in `extension Type { }` blocks - [ ] Kotlin — extension functions `fun Type.method()` Verify these DON'T need it (methods nested in class body → qualified name should already be correct):