Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yuy0ung/YuC0de
/ functions
Functions
98 in github.com/Yuy0ung/YuC0de
⨍
Functions
98
◇
Types & classes
32
↓ 50 callers
Method
next
()
backend/engine/java_parser.go:701
↓ 35 callers
Method
peek
Helpers
backend/engine/java_parser.go:694
↓ 17 callers
Function
toRelative
(path string, rootDir string)
backend/engine/scanner.go:651
↓ 9 callers
Function
extractVariables
extractVariables finds potential variable names in a line
backend/engine/scanner.go:664
↓ 8 callers
Function
broadcastTasks
broadcastTasks fetches all tasks and broadcasts them to connected clients
backend/main.go:134
↓ 8 callers
Function
traceBack
traceBack tries graph-based analysis first, then falls back to legacy regex
backend/engine/scanner.go:901
↓ 7 callers
Method
consume
(val string)
backend/engine/java_parser.go:709
↓ 7 callers
Function
removeStringContent
(line string)
backend/engine/scanner.go:694
↓ 6 callers
Function
simpleName
(fullName string)
backend/engine/scanner.go:1864
↓ 6 callers
Method
skipBalanced
(open, close string)
backend/engine/java_parser.go:659
↓ 5 callers
Function
contains
(slice []string, val string)
backend/engine/java_parser.go:715
↓ 5 callers
Function
extractArguments
extractArguments extracts arguments from a method call string like "foo(a, b(c), d)"
backend/engine/scanner.go:1385
↓ 4 callers
Method
BuildIndex
BuildIndex scans the entire project to build the symbol table
backend/engine/indexer.go:64
↓ 4 callers
Method
ResolveType
ResolveType attempts to find the full class name for a variable type
backend/engine/indexer.go:167
↓ 4 callers
Function
findCallerObject
findCallerObject extracts the object calling the method e.g. "client.execute(get)" -> "client" e.g. "stmt.execute(sql)" -> "stmt" e.g. "Request.Get(ur
backend/engine/scanner.go:1430
↓ 4 callers
Function
isKeyword
(w string)
backend/cpg/code_parser.go:218
↓ 3 callers
Method
Compile
()
backend/pkg/langgraph/graph.go:50
↓ 3 callers
Method
GetMethodInfo
GetMethodInfo finds method info by class and method name
backend/engine/indexer.go:203
↓ 3 callers
Method
consumeBalanced
(open, close string)
backend/engine/java_parser.go:674
↓ 3 callers
Function
getSnippet
(lines []string, index int)
backend/engine/scanner.go:1752
↓ 3 callers
Function
isVariableOnLHS
(lhs string, varName string)
backend/engine/scanner.go:1743
↓ 3 callers
Function
matchPattern
(pattern, text string)
backend/engine/scanner.go:1379
↓ 2 callers
Method
AddNode
(name string, fn NodeFunc[T])
backend/pkg/langgraph/graph.go:28
↓ 2 callers
Method
GetMethodByLine
GetMethodByLine finds which method contains the given line number in a file
backend/engine/indexer.go:213
↓ 2 callers
Function
isAlpha
(r rune)
backend/engine/java_parser.go:181
↓ 2 callers
Function
isSafeParameterType
(paramDecl string)
backend/engine/scanner.go:1335
↓ 2 callers
Function
isTypeCompatible
(actualType, expectedType string)
backend/engine/scanner.go:1814
↓ 2 callers
Function
resolveContextVarType
(lines []string, lineIdx int, varName string, currentClassName string)
backend/engine/scanner.go:1764
↓ 2 callers
Function
resolveVariableType
resolveVariableType attempts to find the type of a variable by scanning backwards
backend/engine/scanner.go:1534
↓ 1 callers
Method
AddConditionalEdges
(from string, condition func(ctx context.Context, state T) string, routeMap map[string]string)
backend/pkg/langgraph/graph.go:36
↓ 1 callers
Method
AddEdge
(from, to string)
backend/pkg/langgraph/graph.go:32
↓ 1 callers
Method
Invoke
(ctx context.Context, initialState T)
backend/pkg/langgraph/graph.go:58
↓ 1 callers
Method
Listen
()
backend/main.go:86
↓ 1 callers
Function
NewBroker
()
backend/main.go:77
↓ 1 callers
Function
NewSymbolTable
()
backend/engine/indexer.go:48
↓ 1 callers
Function
ParseJavaFile
ParseJavaFile parses a Java file into a structured representation This is a hand-written recursive descent parser simplified for structure extraction
backend/engine/java_parser.go:47
↓ 1 callers
Function
ParseJavaSource
ParseJavaSource parses Java source code string
backend/engine/java_parser.go:56
↓ 1 callers
Function
ParseMethodStructure
ParseMethodStructure analyzes method body to extract internal nodes and edges methodID: The ID of the method node (e.g. "com.example.User:login") body
backend/cpg/code_parser.go:36
↓ 1 callers
Method
ScanDirectory
ScanDirectory scans a directory recursively
backend/engine/scanner.go:611
↓ 1 callers
Method
ScanFile
ScanFile scans a single file
backend/engine/scanner.go:102
↓ 1 callers
Method
SetEntryPoint
(name string)
backend/pkg/langgraph/graph.go:46
↓ 1 callers
Function
buildAuditGraph
()
backend/ai_audit.go:110
↓ 1 callers
Method
extractCalls
(start, end int)
backend/engine/java_parser.go:507
↓ 1 callers
Function
findMissingCode
Simple helper to find function definition in the project
backend/ai_audit.go:464
↓ 1 callers
Function
findMyBatisSource
findMyBatisSource attempts to locate the Java method that corresponds to the MyBatis XML SQL statement
backend/engine/scanner.go:732
↓ 1 callers
Function
getVulnerabilitySkill
(ruleName string)
backend/ai_audit.go:271
↓ 1 callers
Function
graphTraceBack
graphTraceBack searches backwards using the Symbol Table (Graph-based)
backend/engine/scanner.go:941
↓ 1 callers
Method
indexFile
(path string, mu *sync.Mutex)
backend/engine/indexer.go:88
↓ 1 callers
Function
initDB
()
backend/main.go:151
↓ 1 callers
Function
initRulesDB
()
backend/main.go:232
↓ 1 callers
Function
isAlphaNum
(r rune)
backend/engine/java_parser.go:185
↓ 1 callers
Function
isControllerOrEntryClass
(className string, filePath string)
backend/engine/scanner.go:1356
↓ 1 callers
Method
isFieldStart
()
backend/engine/java_parser.go:534
↓ 1 callers
Function
isKeyword
(s string)
backend/engine/java_parser.go:529
↓ 1 callers
Method
isMethodStart
()
backend/engine/java_parser.go:342
↓ 1 callers
Function
isSafeExecuteType
(typeName string)
backend/engine/scanner.go:1623
↓ 1 callers
Function
isSymbol
(r rune)
backend/engine/java_parser.go:177
↓ 1 callers
Function
isType
(s string)
backend/engine/scanner.go:1612
↓ 1 callers
Function
isValidUsage
isValidUsage verifies if a found usage actually calls the target method on the target class
backend/engine/scanner.go:1471
↓ 1 callers
Function
isWhitespace
(r rune)
backend/engine/java_parser.go:173
↓ 1 callers
Function
legacyTraceBack
(path string, lines []string, startIndex int, targetVar string, sourcePatterns []string, sanitizerPatterns []s
backend/engine/scanner.go:1640
↓ 1 callers
Method
parse
()
backend/engine/java_parser.go:197
↓ 1 callers
Method
parseClass
()
backend/engine/java_parser.go:243
↓ 1 callers
Method
parseClassBody
(classNode *ClassNode)
backend/engine/java_parser.go:300
↓ 1 callers
Method
parseField
()
backend/engine/java_parser.go:603
↓ 1 callers
Method
parseImport
()
backend/engine/java_parser.go:227
↓ 1 callers
Method
parseMethod
()
backend/engine/java_parser.go:363
↓ 1 callers
Method
parsePackage
()
backend/engine/java_parser.go:214
↓ 1 callers
Function
performAIAudit
(taskID uint, scanPath string)
backend/ai_audit.go:45
↓ 1 callers
Function
prepareInitialMessages
(v VulnerabilityRecord)
backend/ai_audit.go:221
↓ 1 callers
Function
removeComments
(source string)
backend/cpg/code_parser.go:207
↓ 1 callers
Function
runScan
(t Task)
backend/main.go:344
↓ 1 callers
Function
tokenize
(input string)
backend/engine/java_parser.go:94
↓ 1 callers
Function
traceUsages
(methodName string, rootDir string)
backend/engine/scanner.go:854
Method
FindImplementations
FindImplementations finds all classes that implement an interface
backend/engine/indexer.go:194
Function
GetGraphHandler
GetGraphHandler returns the CPG for a specific node with multi-hop tracing
backend/cpg/handler.go:131
Function
Init
Init initializes the CPG module
backend/cpg/handler.go:29
Function
ListNodesHandler
ListNodesHandler returns all available nodes (classes/methods) for the sidebar
backend/cpg/handler.go:56
Function
NewEngine
NewEngine creates a new engine and loads rules from a directory
backend/engine/scanner.go:61
Function
NewStateGraph
()
backend/pkg/langgraph/graph.go:20
Method
ServeHTTP
(c *gin.Context)
backend/main.go:102
Function
auditNode
(ctx context.Context, state AuditState)
backend/ai_audit.go:128
Function
createRule
(c *gin.Context)
backend/main.go:612
Function
deleteRule
(c *gin.Context)
backend/main.go:673
Function
deleteTasks
(c *gin.Context)
backend/main.go:418
Function
fetchCodeNode
(ctx context.Context, state AuditState)
backend/ai_audit.go:200
Function
getAIConfig
(c *gin.Context)
backend/ai_handlers.go:9
Function
getFileContent
(c *gin.Context)
backend/main.go:485
Function
getTask
(c *gin.Context)
backend/main.go:451
Function
listRules
(c *gin.Context)
backend/main.go:283
Function
listTasks
(c *gin.Context)
backend/main.go:445
Function
main
()
backend/main.go:177
Function
main
()
backend/cmd/debug/main.go:8
Function
shouldContinue
(ctx context.Context, state AuditState)
backend/ai_audit.go:193
Function
startScan
(c *gin.Context)
backend/main.go:292
Function
toggleRule
(c *gin.Context)
backend/main.go:593
Function
updateAIConfig
(c *gin.Context)
backend/ai_handlers.go:18
Function
updateRule
(c *gin.Context)
backend/main.go:518