Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CrawlFromLine ¶
func CrawlFromLine( root, node *sitter.Node, content []byte, variablesToTrack map[string]bool, startLine uint32, startFromEnd bool, visitedLines map[uint32]bool, visitedFunctions map[string]*models.VisitInfo, ) []models.DataFlowStep
----------------------------------------------------------------------------- CrawlFromLine - Performs data flow analysis starting from a specific line. -----------------------------------------------------------------------------
Parameters:
- root (*sitter.Node): The root node of the syntax tree.
- node (*sitter.Node): The current node in the syntax tree.
- content ([]byte): The content of the file being analyzed.
- variablesToTrack (map[string]bool): A map of variables to track during the analysis.
- startLine (uint32): The line number to start the analysis from.
- startFromEnd (bool): Flag indicating whether to start the analysis from the end of the function.
- visitedLines (map[uint32]bool): A map of lines that have already been visited.
- visitedFunctions (map[string]*models.VisitInfo): A map of functions that have already been visited.
Returns:
- ([]models.DataFlowStep): A slice of data flow steps identified during the analysis.
-----------------------------------------------------------------------------
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.