csharp

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package csharp implements import extraction for C# source files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStdlib

func IsStdlib(spec string) bool

IsStdlib returns true if the import specifier refers to a C# stdlib/framework namespace.

Types

type Extractor

type Extractor struct{}

Extractor extracts import facts from C# source files.

func New

func New() *Extractor

New returns a new C# extractor.

func (*Extractor) Clone

func (e *Extractor) Clone() extractor.Extractor

func (*Extractor) Extensions

func (e *Extractor) Extensions() []string

func (*Extractor) Extract

func (e *Extractor) Extract(filePath string, content []byte) ([]model.ImportFact, error)

Extract parses C# source and returns all import facts.

func (*Extractor) ExtractDefinitions

func (e *Extractor) ExtractDefinitions(content []byte, symbolNames []string) []string

ExtractDefinitions returns signature lines for the given symbol names.

func (*Extractor) Language

func (e *Extractor) Language() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL