crawler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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