GitNexus/gitnexus/test/fixtures/lang-resolution/csharp-interface-dispatch/IRepository.cs
Gergo Magyar deabfcb046 test: METHOD_IMPLEMENTS integration tests for C#, TypeScript, Kotlin, Dart
Add interface dispatch fixtures and METHOD_IMPLEMENTS edge assertions for
the 4 remaining languages that support interfaces:

- C#: IRepository interface with Find/Save, SqlRepository implements
- TypeScript: IRepository interface with find/save, SqlRepository implements
- Kotlin: Repository interface with find/save, SqlRepository implements
- Dart: abstract Repository with find/save, SqlRepository implements

Fix: Kotlin interfaces use class_declaration AST node type — added
keyword-based detection in findEnclosingClassInfo to correctly label
them as Interface (not Class), enabling METHOD_IMPLEMENTS edge emission.

Total METHOD_IMPLEMENTS integration coverage: 9 languages
(Java, PHP, Rust, Swift, Python, C#, TypeScript, Kotlin, Dart)
2026-04-03 17:09:20 +01:00

4 lines
88 B
C#

public interface IRepository {
string Find(int id);
bool Save(string entity);
}