Module v.gen.js.sourcemap stdlib

v.gen.js.sourcemap
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
4
Imported by:
1
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn generate_empty_map

fn generate_empty_map() &Generator

#fn new_sourcemap

fn new_sourcemap(file string, source_root string, sources_content_inline bool) SourceMap

Structs

#struct SourcePosition

pub struct SourcePosition {
	source_line   u32
	source_column u32
}

#struct SourceMap

pub struct SourceMap {
pub mut:
	version                int               [json: version]
	file                   string            [json: file]
	source_root            string            [json: source_root]
	sources                Sets              [json: sources]
	sources_content        map[string]string
	names                  Sets
	mappings               Mappings
	sources_content_inline bool
}

#fn (&SourceMap) add_mapping

fn (mut sm &SourceMap) add_mapping(source_name string, source_position SourcePositionType, gen_line u32, gen_column u32, name string)

Add a single mapping from original source line and column to the generated source's line and column for this source map being created.

#fn (&SourceMap) add_mapping_list

fn (mut sm &SourceMap) add_mapping_list(source_name string, mapping_list []MappingInput) !

Add multiple mappings from the same source

#fn (&SourceMap) set_source_content

fn (mut sm &SourceMap) set_source_content(source_name string, source_content string)

Set the source content for a source file.

#fn (&SourceMap) export_mappings

fn (mut sm &SourceMap) export_mappings(mut writer &io.Writer)

#fn (&SourceMap) export_mappings_string

fn (mut sm &SourceMap) export_mappings_string() string

#fn (&SourceMap) to_json

fn (mut sm &SourceMap) to_json() SourceMapJson

create a JSON representing the sourcemap Sourcemap Specs http://sourcemaps.info/spec.html

Interfaces

This section is empty.

Enums

This section is empty.