roslyn:get_containing_member
Identify the containing method, property, or class at a specific code position to understand context in C# files using Roslyn compiler analysis.
Instructions
Get information about the containing method/property/class at a position. Returns the enclosing symbol's name, kind, and signature. Useful for understanding context. 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 |