public static class SourceMapGeneratorV2.LineMapEncoder extends Object
Constructor and Description |
---|
SourceMapGeneratorV2.LineMapEncoder() |
Modifier and Type | Method and Description |
---|---|
static void |
encodeEntry(Appendable out,
int id,
int lastId,
int reps)
The source map line map is consists of a series of entries each
representing a map entry and a repetition count of that entry.
|
static int |
getRelativeMappingId(int id,
int idLength,
int lastId) |
static int |
getRelativeMappingIdLength(int rawId,
int lastId) |
public static void encodeEntry(Appendable out, int id, int lastId, int reps) throws IOException
out
- The entry destination.id
- The id for the entry.lastId
- The previous id written, used to generate a relative
map id.reps
- The number of times the id is repeated in the map.IOException
public static int getRelativeMappingId(int id, int idLength, int lastId)
idLength
- the length relative id, when encoded in as a base64
value. @see #getRelativeMappingIdLengthpublic static int getRelativeMappingIdLength(int rawId, int lastId)