Documentation
¶
Overview ¶
Package sourcemap records backend-independent relationships between generated code and TypeRB source. Target-specific source-map encodings are deliberately layered on top of this model.
Index ¶
- Constants
- func EndMarker(id int) string
- func IsMarkerLine(line string) bool
- func PositionAt(source string, offset int) token.Position
- func StartMarker(id int) string
- func WithGoLineDirectives(output, generatedPath string, mapping Map) string
- type Generated
- type Location
- type Map
- type Mapping
- type Recorder
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func IsMarkerLine ¶
func StartMarker ¶
func WithGoLineDirectives ¶ added in v0.2.9
WithGoLineDirectives projects the shared map into Go's compiler-recognized line directives. Delve then sees TypeRB source paths without needing a TypeRB-specific breakpoint or stack-frame translation layer.
Types ¶
type Map ¶
func ExtractMarkers ¶
ExtractMarkers removes codegen-only marker lines after target formatting and converts their byte ranges into the shared mapping model.
Click to show internal directories.
Click to hide internal directories.