public final class SourceMap extends Object
CodeConsumer
,
CodeGenerator
,
CodePrinter
Modifier and Type | Class and Description |
---|---|
static class |
SourceMap.DetailLevel
Source maps can be very large different levels of detail can be specified.
|
static class |
SourceMap.Format
An enumeration of available source map formats
|
static class |
SourceMap.LocationMapping
A simple pair of path prefixes to the desired "destination" location to use within the
source map.
|
Modifier and Type | Method and Description |
---|---|
void |
addMapping(Node node,
com.google.debugging.sourcemap.FilePosition outputStartPosition,
com.google.debugging.sourcemap.FilePosition outputEndPosition) |
void |
appendTo(Appendable out,
String name) |
void |
reset() |
void |
setPrefixMappings(List<SourceMap.LocationMapping> sourceMapLocationMappings) |
void |
setStartingPosition(int offsetLine,
int offsetIndex) |
void |
setWrapperPrefix(String prefix) |
void |
validate(boolean validate) |
public void addMapping(Node node, com.google.debugging.sourcemap.FilePosition outputStartPosition, com.google.debugging.sourcemap.FilePosition outputEndPosition)
public void appendTo(Appendable out, String name) throws IOException
IOException
public void reset()
public void setStartingPosition(int offsetLine, int offsetIndex)
public void setWrapperPrefix(String prefix)
public void validate(boolean validate)
public void setPrefixMappings(List<SourceMap.LocationMapping> sourceMapLocationMappings)
sourceMapLocationMappings
- Copyright © 2009-2016 Google. All Rights Reserved.