csharp

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCSharpIndices

func BuildCSharpIndices(
	suppliedFiles map[string]bool,
	contentReader vcs.ContentReader,
) (map[string][]string, map[string]map[string][]string, map[string]string, map[string]string)

func ExtractCSharpTypeIdentifiers

func ExtractCSharpTypeIdentifiers(source string) []string

ExtractCSharpTypeIdentifiers extracts likely type identifiers from code references.

func IsTestFile

func IsTestFile(filePath string) bool

IsTestFile reports whether the given C# path is a test file.

func ParseCSharpNamespace

func ParseCSharpNamespace(source string) string

ParseCSharpNamespace extracts the file namespace declaration.

func ParseTopLevelCSharpTypeNames

func ParseTopLevelCSharpTypeNames(source string) []string

ParseTopLevelCSharpTypeNames extracts top-level type names declared in a file.

func ResolveCSharpProjectImports

func ResolveCSharpProjectImports(
	absPath string,
	_ string,
	namespaceToFiles map[string][]string,
	namespaceToTypes map[string]map[string][]string,
	fileToNamespace map[string]string,
	fileToScope map[string]string,
	suppliedFiles map[string]bool,
	contentReader vcs.ContentReader,
) ([]string, error)

Types

type CSharpImport

type CSharpImport struct {
	Path string
}

CSharpImport represents a using directive.

func CSharpImports

func CSharpImports(filePath string) ([]CSharpImport, error)

CSharpImports parses a C# file and returns its imports.

func ParseCSharpImports

func ParseCSharpImports(source string) []CSharpImport

ParseCSharpImports parses C# source code and extracts using directives.

type Module

type Module struct{}

func (Module) Extensions

func (Module) Extensions() []string

func (Module) IsTestFile

func (Module) IsTestFile(filePath string, _ vcs.ContentReader) bool

func (Module) Maturity

func (Module) Maturity() langsupport.MaturityLevel

func (Module) Name

func (Module) Name() string

func (Module) NewResolver

func (Module) NewResolver(ctx *langsupport.Context, contentReader vcs.ContentReader) langsupport.Resolver

Jump to

Keyboard shortcuts

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