package sourcemap
Import Path
github.com/evanw/esbuild/internal/sourcemap (on go.dev)
Dependency Relation
imports one package, and imported by 3 packages
Involved Source Files
sourcemap.go
Package-Level Type Names (total 3, all are exported)
// 0-based count of UTF-16 code units
// 0-based
// 0-based count of UTF-16 code units
// 0-based
// 0-based
func (*SourceMap).Find(line int32, column int32) *Mapping
This stores both the unquoted and the quoted values. We try to use the
already-quoted value if possible so we don't need to re-quote it
unnecessarily for maximum performance.
But sometimes we need to re-quote the value, such as when it contains
non-ASCII characters and we are in ASCII-only mode. In that case we quote
this parsed UTF-16 value.
Mappings []Mapping
Sources []string
SourcesContent []SourceContent
(*T) Find(line int32, column int32) *Mapping
func github.com/evanw/esbuild/internal/js_parser.ParseSourceMap(log logger.Log, source logger.Source) *SourceMap
Package-Level Functions (total 3, all are exported)
A single base 64 digit can contain 6 bits of data. For the base 64 variable
length quantities we use in the source map spec, the first bit is the sign,
the next four bits are the actual value, and the 6th bit is the continuation
bit. The continuation bit tells us whether there are more digits in this
value following this digit.
Continuation
| Sign
| |
V V
101011
Package-Level Variables (only one, which is unexported)
![]() |
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. |