Documentation
¶
Overview ¶
Package csharp implements the C# language analyzer for semantic input tracing
Index ¶
- type CSharpAnalyzer
- func (a *CSharpAnalyzer) AnalyzeMethodBody(method *types.MethodDef, source []byte, state *types.AnalysisState) (*analyzer.MethodFlowAnalysis, error)
- func (a *CSharpAnalyzer) BuildSymbolTable(filePath string, source []byte, root *sitter.Node) (*types.SymbolTable, error)
- func (a *CSharpAnalyzer) DetectFrameworks(symbolTable *types.SymbolTable, source []byte) ([]string, error)
- func (a *CSharpAnalyzer) ExtractAssignments(root *sitter.Node, source []byte, scope string) ([]*types.Assignment, error)
- func (a *CSharpAnalyzer) ExtractCalls(root *sitter.Node, source []byte, scope string) ([]*types.CallSite, error)
- func (a *CSharpAnalyzer) ExtractClasses(root *sitter.Node, source []byte) ([]*types.ClassDef, error)
- func (a *CSharpAnalyzer) ExtractFunctions(root *sitter.Node, source []byte) ([]*types.FunctionDef, error)
- func (a *CSharpAnalyzer) FindInputSources(root *sitter.Node, source []byte) ([]*types.FlowNode, error)
- func (a *CSharpAnalyzer) ResolveImports(symbolTable *types.SymbolTable, basePath string) ([]string, error)
- func (a *CSharpAnalyzer) TraceExpression(target types.FlowTarget, state *types.AnalysisState) (*types.FlowMap, error)
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 (*CSharpAnalyzer) ExtractClasses ¶
func (*CSharpAnalyzer) ExtractFunctions ¶
func (a *CSharpAnalyzer) ExtractFunctions(root *sitter.Node, source []byte) ([]*types.FunctionDef, error)
func (*CSharpAnalyzer) FindInputSources ¶
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)
Click to show internal directories.
Click to hide internal directories.