Versions in this module Expand all Collapse all v1 v1.0.2 Dec 13, 2024 Changes in this version + func AddGlobalVariableSteps(dataFlow []models.DataFlowStep, root *sitter.Node, content []byte, ...) []models.DataFlowStep + func ExtractFunctionNameFromCall(node *sitter.Node, content []byte) string + func FindCallExpression(node *sitter.Node) *sitter.Node + func FindFunctionBounds(root *sitter.Node, node *sitter.Node, startLine uint32) (functionStart, functionEnd uint32) + func FindFunctionByLine(root *sitter.Node, line uint32, lang string) *sitter.Node + func FindFunctionByName(root *sitter.Node, name string, content []byte) *sitter.Node + func FindFunctionCallSites(root *sitter.Node, functionName string, content []byte) []models.FunctionCallSite + func FindFunctionDeclaration(root *sitter.Node, functionName string, content []byte) *sitter.Node + func FindGlobalVariableDeclaration(root *sitter.Node, variable string, content []byte) *sitter.Node + func FindNodeAtLine(node *sitter.Node, targetLine uint32) *sitter.Node + func FindParentFunction(node *sitter.Node, content []byte) string + func GetArgumentVariable(callNode *sitter.Node, parameterVariable string, functionNode *sitter.Node, ...) string + func GetControlType(nodeType string) string + func GetParameterName(functionNode *sitter.Node, content []byte, originalVariable string, ...) string + func IsAssignment(node *sitter.Node, content []byte, variable string) (bool, string) + func IsClassFieldAssignment(node *sitter.Node, content []byte, variable string) bool + func IsFunctionCall(node *sitter.Node, content []byte, variable string) (bool, string) + func IsFunctionDeclaration(root, node *sitter.Node, content []byte) string + func IsFunctionDeclared(root *sitter.Node, functionName string, content []byte) bool + func IsLiteral(node *sitter.Node) bool + func IsValidVariableToTrack(root *sitter.Node, variable string, content []byte) bool + func IsVariableGlobal(root *sitter.Node, variable string, content []byte) bool + func IsVariableInScope(varName string, functionNode *sitter.Node, content []byte) bool + func IsVariableUsedInExpression(node *sitter.Node, variable string, content []byte) bool + func SafeContent(node *sitter.Node, content []byte) string