ruby

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 ruby implements the Ruby language analyzer for semantic input tracing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RubyAnalyzer

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

RubyAnalyzer implements the LanguageAnalyzer interface for Ruby

func NewRubyAnalyzer

func NewRubyAnalyzer() *RubyAnalyzer

NewRubyAnalyzer creates a new Ruby analyzer

func (*RubyAnalyzer) AnalyzeMethodBody

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

func (*RubyAnalyzer) BuildSymbolTable

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

func (*RubyAnalyzer) DetectFrameworks

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

func (*RubyAnalyzer) ExtractAssignments

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

func (*RubyAnalyzer) ExtractCalls

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

func (*RubyAnalyzer) ExtractClasses

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

func (*RubyAnalyzer) ExtractFunctions

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

func (*RubyAnalyzer) FindInputSources

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

func (*RubyAnalyzer) ResolveImports

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

func (*RubyAnalyzer) TraceExpression

func (a *RubyAnalyzer) 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