mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-21 00:21:30 +00:00
Covers all high and medium impact gaps from the Swift feature coverage analysis: 1. if let / guard let bindings: add if_statement and guard_statement to DECLARATION_NODE_TYPES, extract varName and value for Tier 2 return-type propagation (callResult, copy, fieldAccess, methodCallResult) 2. await / try expression unwrapping: add unwrapSwiftExpression() that strips await_expression and try_expression wrappers before checking for call_expression. Applied in extractPendingAssignment, extractInitializer, and scanConstructorBinding. 3. for item in collection: add extractForLoopBinding for Swift with extractSwiftElementTypeFromTypeNode that handles [User] array sugar and Array<User> generic types. Registered in typeConfig. 4. Multiple inheritance specifiers: already working — tree-sitter queries match all inheritance_specifier occurrences automatically. Verified, no code changes needed. 5. Enum case extraction: add (enum_entry (simple_identifier) @name) @definition.property query to SWIFT_QUERIES. 6. self/super resolution: unskipped both describe.skip test suites (tree-sitter-swift 0.7.1 ships prebuilds, Node 22 build issue resolved). Both pass — 5 previously-skipped tests now running. 7. Optional chaining obj?.method(): already working — tree-sitter-swift parses the ? transparently. Verified, no code changes needed. Tests: 3,603 → 3,608 (5 unskipped self/super tests) Swift tests: 23 → 28 passing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||
| global-setup.ts | ||
| vitest.d.ts | ||