MCPcopy
hub / github.com/MadAppGang/dingo / IsTransformedLine

Method IsTransformedLine

pkg/sourcemap/dmap/reader.go:662–672  ·  view source on GitHub ↗

IsTransformedLine returns true if the given Dingo line has a direct transformation mapping. Transformed lines have different code structure and require special column handling.

(dingoLine int)

Source from the content-addressed store, hash-verified

660// IsTransformedLine returns true if the given Dingo line has a direct transformation mapping.
661// Transformed lines have different code structure and require special column handling.
662func (r *Reader) IsTransformedLine(dingoLine int) bool {
663 r.mu.RLock()
664 defer r.mu.RUnlock()
665
666 for _, m := range r.lineMappings {
667 if int(m.DingoLine) == dingoLine {
668 return true
669 }
670 }
671 return false
672}
673
674// Header returns a copy of the file header.
675func (r *Reader) Header() Header {

Callers 1

TranslatePositionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected