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 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 |
addSourceFile(SourceFile sourceFile) |
void |
appendTo(java.lang.Appendable out,
java.lang.String name) |
void |
reset() |
void |
setPrefixMappings(java.util.List<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(SourceFile sourceFile)
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<SourceMap.LocationMapping> sourceMapLocationMappings)
sourceMapLocationMappings
- public void setSourceFileMapping(SourceFileMapping mapping)
Copyright © 2009-2017 Google. All Rights Reserved.