MCPcopy Create free account

hub / github.com/Yuy0ung/YuC0de / functions

Functions98 in github.com/Yuy0ung/YuC0de

↓ 50 callersMethodnext
()
backend/engine/java_parser.go:701
↓ 35 callersMethodpeek
Helpers
backend/engine/java_parser.go:694
↓ 17 callersFunctiontoRelative
(path string, rootDir string)
backend/engine/scanner.go:651
↓ 9 callersFunctionextractVariables
extractVariables finds potential variable names in a line
backend/engine/scanner.go:664
↓ 8 callersFunctionbroadcastTasks
broadcastTasks fetches all tasks and broadcasts them to connected clients
backend/main.go:134
↓ 8 callersFunctiontraceBack
traceBack tries graph-based analysis first, then falls back to legacy regex
backend/engine/scanner.go:901
↓ 7 callersMethodconsume
(val string)
backend/engine/java_parser.go:709
↓ 7 callersFunctionremoveStringContent
(line string)
backend/engine/scanner.go:694
↓ 6 callersFunctionsimpleName
(fullName string)
backend/engine/scanner.go:1864
↓ 6 callersMethodskipBalanced
(open, close string)
backend/engine/java_parser.go:659
↓ 5 callersFunctioncontains
(slice []string, val string)
backend/engine/java_parser.go:715
↓ 5 callersFunctionextractArguments
extractArguments extracts arguments from a method call string like "foo(a, b(c), d)"
backend/engine/scanner.go:1385
↓ 4 callersMethodBuildIndex
BuildIndex scans the entire project to build the symbol table
backend/engine/indexer.go:64
↓ 4 callersMethodResolveType
ResolveType attempts to find the full class name for a variable type
backend/engine/indexer.go:167
↓ 4 callersFunctionfindCallerObject
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 callersFunctionisKeyword
(w string)
backend/cpg/code_parser.go:218
↓ 3 callersMethodCompile
()
backend/pkg/langgraph/graph.go:50
↓ 3 callersMethodGetMethodInfo
GetMethodInfo finds method info by class and method name
backend/engine/indexer.go:203
↓ 3 callersMethodconsumeBalanced
(open, close string)
backend/engine/java_parser.go:674
↓ 3 callersFunctiongetSnippet
(lines []string, index int)
backend/engine/scanner.go:1752
↓ 3 callersFunctionisVariableOnLHS
(lhs string, varName string)
backend/engine/scanner.go:1743
↓ 3 callersFunctionmatchPattern
(pattern, text string)
backend/engine/scanner.go:1379
↓ 2 callersMethodAddNode
(name string, fn NodeFunc[T])
backend/pkg/langgraph/graph.go:28
↓ 2 callersMethodGetMethodByLine
GetMethodByLine finds which method contains the given line number in a file
backend/engine/indexer.go:213
↓ 2 callersFunctionisAlpha
(r rune)
backend/engine/java_parser.go:181
↓ 2 callersFunctionisSafeParameterType
(paramDecl string)
backend/engine/scanner.go:1335
↓ 2 callersFunctionisTypeCompatible
(actualType, expectedType string)
backend/engine/scanner.go:1814
↓ 2 callersFunctionresolveContextVarType
(lines []string, lineIdx int, varName string, currentClassName string)
backend/engine/scanner.go:1764
↓ 2 callersFunctionresolveVariableType
resolveVariableType attempts to find the type of a variable by scanning backwards
backend/engine/scanner.go:1534
↓ 1 callersMethodAddConditionalEdges
(from string, condition func(ctx context.Context, state T) string, routeMap map[string]string)
backend/pkg/langgraph/graph.go:36
↓ 1 callersMethodAddEdge
(from, to string)
backend/pkg/langgraph/graph.go:32
↓ 1 callersMethodInvoke
(ctx context.Context, initialState T)
backend/pkg/langgraph/graph.go:58
↓ 1 callersMethodListen
()
backend/main.go:86
↓ 1 callersFunctionNewBroker
()
backend/main.go:77
↓ 1 callersFunctionNewSymbolTable
()
backend/engine/indexer.go:48
↓ 1 callersFunctionParseJavaFile
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 callersFunctionParseJavaSource
ParseJavaSource parses Java source code string
backend/engine/java_parser.go:56
↓ 1 callersFunctionParseMethodStructure
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 callersMethodScanDirectory
ScanDirectory scans a directory recursively
backend/engine/scanner.go:611
↓ 1 callersMethodScanFile
ScanFile scans a single file
backend/engine/scanner.go:102
↓ 1 callersMethodSetEntryPoint
(name string)
backend/pkg/langgraph/graph.go:46
↓ 1 callersFunctionbuildAuditGraph
()
backend/ai_audit.go:110
↓ 1 callersMethodextractCalls
(start, end int)
backend/engine/java_parser.go:507
↓ 1 callersFunctionfindMissingCode
Simple helper to find function definition in the project
backend/ai_audit.go:464
↓ 1 callersFunctionfindMyBatisSource
findMyBatisSource attempts to locate the Java method that corresponds to the MyBatis XML SQL statement
backend/engine/scanner.go:732
↓ 1 callersFunctiongetVulnerabilitySkill
(ruleName string)
backend/ai_audit.go:271
↓ 1 callersFunctiongraphTraceBack
graphTraceBack searches backwards using the Symbol Table (Graph-based)
backend/engine/scanner.go:941
↓ 1 callersMethodindexFile
(path string, mu *sync.Mutex)
backend/engine/indexer.go:88
↓ 1 callersFunctioninitDB
()
backend/main.go:151
↓ 1 callersFunctioninitRulesDB
()
backend/main.go:232
↓ 1 callersFunctionisAlphaNum
(r rune)
backend/engine/java_parser.go:185
↓ 1 callersFunctionisControllerOrEntryClass
(className string, filePath string)
backend/engine/scanner.go:1356
↓ 1 callersMethodisFieldStart
()
backend/engine/java_parser.go:534
↓ 1 callersFunctionisKeyword
(s string)
backend/engine/java_parser.go:529
↓ 1 callersMethodisMethodStart
()
backend/engine/java_parser.go:342
↓ 1 callersFunctionisSafeExecuteType
(typeName string)
backend/engine/scanner.go:1623
↓ 1 callersFunctionisSymbol
(r rune)
backend/engine/java_parser.go:177
↓ 1 callersFunctionisType
(s string)
backend/engine/scanner.go:1612
↓ 1 callersFunctionisValidUsage
isValidUsage verifies if a found usage actually calls the target method on the target class
backend/engine/scanner.go:1471
↓ 1 callersFunctionisWhitespace
(r rune)
backend/engine/java_parser.go:173
↓ 1 callersFunctionlegacyTraceBack
(path string, lines []string, startIndex int, targetVar string, sourcePatterns []string, sanitizerPatterns []s
backend/engine/scanner.go:1640
↓ 1 callersMethodparse
()
backend/engine/java_parser.go:197
↓ 1 callersMethodparseClass
()
backend/engine/java_parser.go:243
↓ 1 callersMethodparseClassBody
(classNode *ClassNode)
backend/engine/java_parser.go:300
↓ 1 callersMethodparseField
()
backend/engine/java_parser.go:603
↓ 1 callersMethodparseImport
()
backend/engine/java_parser.go:227
↓ 1 callersMethodparseMethod
()
backend/engine/java_parser.go:363
↓ 1 callersMethodparsePackage
()
backend/engine/java_parser.go:214
↓ 1 callersFunctionperformAIAudit
(taskID uint, scanPath string)
backend/ai_audit.go:45
↓ 1 callersFunctionprepareInitialMessages
(v VulnerabilityRecord)
backend/ai_audit.go:221
↓ 1 callersFunctionremoveComments
(source string)
backend/cpg/code_parser.go:207
↓ 1 callersFunctionrunScan
(t Task)
backend/main.go:344
↓ 1 callersFunctiontokenize
(input string)
backend/engine/java_parser.go:94
↓ 1 callersFunctiontraceUsages
(methodName string, rootDir string)
backend/engine/scanner.go:854
MethodFindImplementations
FindImplementations finds all classes that implement an interface
backend/engine/indexer.go:194
FunctionGetGraphHandler
GetGraphHandler returns the CPG for a specific node with multi-hop tracing
backend/cpg/handler.go:131
FunctionInit
Init initializes the CPG module
backend/cpg/handler.go:29
FunctionListNodesHandler
ListNodesHandler returns all available nodes (classes/methods) for the sidebar
backend/cpg/handler.go:56
FunctionNewEngine
NewEngine creates a new engine and loads rules from a directory
backend/engine/scanner.go:61
FunctionNewStateGraph
()
backend/pkg/langgraph/graph.go:20
MethodServeHTTP
(c *gin.Context)
backend/main.go:102
FunctionauditNode
(ctx context.Context, state AuditState)
backend/ai_audit.go:128
FunctioncreateRule
(c *gin.Context)
backend/main.go:612
FunctiondeleteRule
(c *gin.Context)
backend/main.go:673
FunctiondeleteTasks
(c *gin.Context)
backend/main.go:418
FunctionfetchCodeNode
(ctx context.Context, state AuditState)
backend/ai_audit.go:200
FunctiongetAIConfig
(c *gin.Context)
backend/ai_handlers.go:9
FunctiongetFileContent
(c *gin.Context)
backend/main.go:485
FunctiongetTask
(c *gin.Context)
backend/main.go:451
FunctionlistRules
(c *gin.Context)
backend/main.go:283
FunctionlistTasks
(c *gin.Context)
backend/main.go:445
Functionmain
()
backend/main.go:177
Functionmain
()
backend/cmd/debug/main.go:8
FunctionshouldContinue
(ctx context.Context, state AuditState)
backend/ai_audit.go:193
FunctionstartScan
(c *gin.Context)
backend/main.go:292
FunctiontoggleRule
(c *gin.Context)
backend/main.go:593
FunctionupdateAIConfig
(c *gin.Context)
backend/ai_handlers.go:18
FunctionupdateRule
(c *gin.Context)
backend/main.go:518