Class SourceMapWriter.Generator
java.lang.Object
de.inetsoftware.jwebassembly.sourcemap.SourceMapWriter.Generator
- Enclosing class:
SourceMapWriter
The generator of the source map
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Appendable
private int
private int
private int
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Append the mappings to the source map.(package private) void
writeEntry
(SourceMapping mapping) Write a single single mapping to the source map.
-
Field Details
-
out
-
previousLine
private int previousLine -
previousColumn
private int previousColumn -
previousSourceFileNameId
private int previousSourceFileNameId -
previousSourceLine
private int previousSourceLine -
previousSourceColumn
private int previousSourceColumn
-
-
Constructor Details
-
Generator
Generator(Appendable out) Create an instance.- Parameters:
out
- the target for the source map
-
-
Method Details
-
appendLineMappings
Append the mappings to the source map.- Throws:
IOException
- if any I/O error occur
-
writeEntry
Write a single single mapping to the source map.- Parameters:
mapping
- the mapping- Throws:
IOException
- if any I/O error occur
-