public final class SourceMap
extends java.lang.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 interface |
SourceMap.LocationMapping
Function that mape a "destination" location to use within the source map.
|
static class |
SourceMap.PrefixLocationMapping
Simple
SourceMap.LocationMapping that strips a prefix from a location. |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(Node node,
com.google.debugging.sourcemap.FilePosition outputStartPosition,
com.google.debugging.sourcemap.FilePosition outputEndPosition) |
void |
addSourceFile(java.lang.String name,
java.lang.String code) |
void |
appendTo(java.lang.Appendable out,
java.lang.String name) |
void |
reset() |
void |
setPrefixMappings(java.util.List<? extends SourceMap.LocationMapping> sourceMapLocationMappings) |
void |
setSourceFileMapping(SourceFileMapping mapping) |
void |
setStartingPosition(int offsetLine,
int offsetIndex) |
void |
setWrapperPrefix(java.lang.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 addSourceFile(java.lang.String name, java.lang.String code)
public void appendTo(java.lang.Appendable out, java.lang.String name) throws java.io.IOException
java.io.IOException
public void reset()
public void setStartingPosition(int offsetLine, int offsetIndex)
public void setWrapperPrefix(java.lang.String prefix)
public void validate(boolean validate)
public void setPrefixMappings(java.util.List<? extends SourceMap.LocationMapping> sourceMapLocationMappings)
sourceMapLocationMappings
- public void setSourceFileMapping(SourceFileMapping mapping)
Copyright © 2009-2019 Google. All Rights Reserved.