type Consumer struct {
// contains filtered or unexported fields
}
func Parse(sourcemapURL string, b []byte) (*Consumer, error)
▹ Example
func (c *Consumer) File() string
File returns an optional name of the generated code that this source map is associated with.
func (c *Consumer) Source( genLine, genColumn int, ) (source, name string, line, column int, ok bool)
Source returns the original source, name, line, and column information for the generated source's line and column positions.
func (c *Consumer) SourceContent(source string) string
SourceContent returns the original source content for the source.
func (c *Consumer) SourcemapURL() string
Name | Synopsis |
---|---|
.. |