Class SourceMapWriter.Generator

java.lang.Object
de.inetsoftware.jwebassembly.sourcemap.SourceMapWriter.Generator
Enclosing class:
SourceMapWriter

private class SourceMapWriter.Generator extends Object
The generator of the source map
  • Field Details

    • out

      private final Appendable 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

      void appendLineMappings() throws IOException
      Append the mappings to the source map.
      Throws:
      IOException - if any I/O error occur
    • writeEntry

      void writeEntry(SourceMapping mapping) throws IOException
      Write a single single mapping to the source map.
      Parameters:
      mapping - the mapping
      Throws:
      IOException - if any I/O error occur