annotationsByLine() — supabase Function Reference
Architecture documentation for the annotationsByLine() function in CodeBlock.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 8bc3fa56_c62b_7b43_b1be_5f522fd0a4f7["annotationsByLine()"] 816ab8fd_5aaa_f5ee_1dd8_0a70d0a7f3de["CodeBlock()"] 816ab8fd_5aaa_f5ee_1dd8_0a70d0a7f3de -->|calls| 8bc3fa56_c62b_7b43_b1be_5f522fd0a4f7 style 8bc3fa56_c62b_7b43_b1be_5f522fd0a4f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/ui/CodeBlock/CodeBlock.tsx lines 180–194
function annotationsByLine(nodes: Array<NodeHover>): Map<number, Map<number, Array<NodeHover>>> {
const result = new Map()
nodes.forEach((node) => {
const line = node.line
const char = node.character
if (!result.has(line)) {
result.set(line, new Map())
}
if (!result.get(line).has(char)) {
result.get(line).set(char, [])
}
result.get(line).get(char).push(node)
})
return result
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does annotationsByLine() do?
annotationsByLine() is a function in the supabase codebase.
What calls annotationsByLine()?
annotationsByLine() is called by 1 function(s): CodeBlock.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free