Class SourceMapWriter
java.lang.Object
de.inetsoftware.jwebassembly.sourcemap.SourceMapWriter
Generates Source Map version 3.
https://sourcemaps.info/spec.html
-
Constructor Summary
ConstructorsConstructorDescriptionSourceMapWriter(String sourceRoot) Create a new instance of the writer for a single map file. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(SourceMapping mapping) Adds a mapping for the given node.voidgenerate(Appendable out) https://sourcemaps.info/spec.html
-
Constructor Details
-
SourceMapWriter
-
-
Method Details
-
addMapping
Adds a mapping for the given node. Mappings must be added in order.- Parameters:
mapping- the mapping
-
generate
https://sourcemaps.info/spec.html- Parameters:
out- the target- Throws:
IOException- if any I/O error occur
-