FragmentOptions
Pennington.TreeSitter.Fragments
Per-reference extraction flags parsed from a :symbol info-string.
Properties
BodyOnlybool- Emit only the declaration's body, stripping the signature and enclosing braces.
DefaultFragmentOptions- The default: full declaration text, no imports, no elision.
IncludeImportsbool- Prepend the file's top-of-file import/using/require statements to the fragment.
SignaturesOnlybool- Render the node with member bodies replaced by an elision marker (outline view).
Pennington.TreeSitter.Fragments.FragmentOptions
namespace Pennington.TreeSitter.Fragments;
/// Per-reference extraction flags parsed from a :symbol info-string.
public record FragmentOptions
{
/// Emit only the declaration's body, stripping the signature and enclosing braces.
public bool BodyOnly { get; set; }
/// The default: full declaration text, no imports, no elision.
public static FragmentOptions Default { get; }
/// Prepend the file's top-of-file import/using/require statements to the fragment.
public bool IncludeImports { get; set; }
/// Render the node with member bodies replaced by an elision marker (outline view).
public bool SignaturesOnly { get; set; }
}