Documentation
¶
Overview ¶
Package scope identifies the (language, toolchain-version) partition a source file belongs to. Graph data is stored and served per scope, so every file is mapped to exactly one scope at index time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectVersion ¶
DetectVersion resolves the toolchain MAJOR version for filePath (absolute) within projectRoot, given its already-determined language. Graphs are grouped by major version, so e.g. Go 1.22 and 1.26.4 both map to "v1", and TypeScript 5.4.2 maps to "v5". It walks up to the nearest governing manifest (go.mod for Go, package.json for TS/JS) and returns fallbackVersion ("v0") when nothing is detectable.
Types ¶
Click to show internal directories.
Click to hide internal directories.