csharp

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package csharp implements the C# language analyzer for semantic input tracing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSharpAnalyzer

type CSharpAnalyzer struct {
	*analyzer.BaseAnalyzer
	// contains filtered or unexported fields
}

CSharpAnalyzer implements the LanguageAnalyzer interface for C#

func NewCSharpAnalyzer

func NewCSharpAnalyzer() *CSharpAnalyzer

NewCSharpAnalyzer creates a new C# analyzer

func (*CSharpAnalyzer) AnalyzeMethodBody

func (a *CSharpAnalyzer) AnalyzeMethodBody(method *types.MethodDef, source []byte, state *types.AnalysisState) (*analyzer.MethodFlowAnalysis, error)

func (*CSharpAnalyzer) BuildSymbolTable

func (a *CSharpAnalyzer) BuildSymbolTable(filePath string, source []byte, root *sitter.Node) (*types.SymbolTable, error)

func (*CSharpAnalyzer) DetectFrameworks

func (a *CSharpAnalyzer) DetectFrameworks(symbolTable *types.SymbolTable, source []byte) ([]string, error)

func (*CSharpAnalyzer) ExtractAssignments

func (a *CSharpAnalyzer) ExtractAssignments(root *sitter.Node, source []byte, scope string) ([]*types.Assignment, error)

func (*CSharpAnalyzer) ExtractCalls

func (a *CSharpAnalyzer) ExtractCalls(root *sitter.Node, source []byte, scope string) ([]*types.CallSite, error)

func (*CSharpAnalyzer) ExtractClasses

func (a *CSharpAnalyzer) ExtractClasses(root *sitter.Node, source []byte) ([]*types.ClassDef, error)

func (*CSharpAnalyzer) ExtractFunctions

func (a *CSharpAnalyzer) ExtractFunctions(root *sitter.Node, source []byte) ([]*types.FunctionDef, error)

func (*CSharpAnalyzer) FindInputSources

func (a *CSharpAnalyzer) FindInputSources(root *sitter.Node, source []byte) ([]*types.FlowNode, error)

func (*CSharpAnalyzer) ResolveImports

func (a *CSharpAnalyzer) ResolveImports(symbolTable *types.SymbolTable, basePath string) ([]string, error)

func (*CSharpAnalyzer) TraceExpression

func (a *CSharpAnalyzer) TraceExpression(target types.FlowTarget, state *types.AnalysisState) (*types.FlowMap, error)

Jump to

Keyboard shortcuts

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