Source File
sourcemap.go
Belonging Package
github.com/evanw/esbuild/internal/sourcemap
package sourcemap
import (
)
type Mapping struct {
GeneratedLine int32 // 0-based
GeneratedColumn int32 // 0-based count of UTF-16 code units
SourceIndex int32 // 0-based
OriginalLine int32 // 0-based
OriginalColumn int32 // 0-based count of UTF-16 code units
}
type SourceMap struct {
Sources []string
SourcesContent []SourceContent
Mappings []Mapping
}
:= len()
:= 0
for > 0 {
:= / 2
:= +
:= []
if .GeneratedLine < || (.GeneratedLine == && .GeneratedColumn <= ) {
= + 1
-= + 1
} else {
=
}
}
if > 0 {
:= &[-1]
if .GeneratedLine == {
return
}
}
return nil
}
var base64 = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
|= ( & 31) <<
++
+= 5
if ( & 32) == 0 {
break
}
}
|= ( & 31) <<
++
+= 5
if ( & 32) == 0 {
break
}
}
var = >> 1
if ( & 1) != 0 {
= -
}
return , , true
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |