Commit Graph

5 Commits

Author SHA1 Message Date
Kazuki Yamada ebe6ff2f3a fix(treeSitter): Fix Swift subscript parameter name collision bug
Fixed a critical functional bug where multiple subscripts with the same
parameter name (e.g., 'key') would create identifier collisions in the parsed
output, making them indistinguishable.

The fix changes the subscript capture pattern from capturing the parameter
name to capturing the entire subscript_declaration node with @name.definition.method
tags. This ensures each subscript is uniquely identified by its full signature
(e.g., "subscript(key: String) -> Value?") rather than just the parameter name.

Added comprehensive test cases:
- Swift protocol/class with multiple subscripts to validate the fix
- C# mixed inheritance (base class + multiple interfaces) for better coverage

All 869 tests pass with this change.
2025-11-24 21:37:29 +09:00
Kazuki Yamada 1ef455100a feat(treeSitter): Add protocol method support to Swift queries
After updating @repomix/tree-sitter-wasms to 0.1.15, we reviewed all
language query files against their official tree-sitter tags.scm files.
This revealed that Swift queries were missing protocol method definitions
(protocol_function_declaration, subscript_declaration, init_declaration
within protocol_body).

This commit adds the missing patterns and comprehensive test coverage
for protocol methods to ensure Swift protocol definitions are properly
parsed and included in the output.
2025-11-24 20:37:08 +09:00
Kazuki Yamada b7fe6f25c5 fix(lint): resolve all oxlint warnings for code quality
- Remove unused imports across 67 files (RepomixConfigMerged, QueryCapture, etc.)
- Fix unused parameters by prefixing with underscore (_context, _index, etc.)
- Remove unused catch parameters using modern JavaScript syntax
- Fix require-yield warnings in generator functions
- Remove unused variables and interface declarations
- Add oxlint configuration to ignore integration test fixtures

Resolves 144 linting warnings while preserving all functionality.
All 743 tests continue to pass. Code quality significantly improved.
2025-08-24 18:25:08 +09:00
Devin AI 8ebb7c1c86 Replace type assertions with createMockConfig in treeSitter test files and fix outputSort test
Co-Authored-By: Kazuki Yamada <koukun0120@gmail.com>
2025-05-12 14:36:55 +00:00
Kazuki Yamada 0f27b16779 feat(compress): Preserve module resolution sentences in more languages 2025-03-27 22:56:09 +09:00