GitNexus/gitnexus/test/fixtures/lang-resolution/csharp-interface-dispatch/App.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

7 lines
156 B
C#

public class App {
public static void Main() {
IRepository repo = new SqlRepository();
repo.Find(1);
repo.Save("test");
}
}