roslyn:get_type_hierarchy
Retrieve inheritance hierarchy for C# types to analyze base and derived relationships using Roslyn compiler analysis.
Instructions
Get the inheritance hierarchy (base types and derived types) for a type. Returns baseTypes chain and derivedTypes list. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to source file | |
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| maxDerivedTypes | No | Maximum number of derived types to return (default: 50). Results are truncated with a hint if limit is exceeded. |