Package com.google.javascript.jscomp
Class SourceMap
java.lang.Object
com.google.javascript.jscomp.SourceMap
Collects information mapping the generated (compiled) source back to
its original source for debugging purposes.
- See Also:
-
CodeConsumer
CodeGenerator
CodePrinter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Source maps can be very large different levels of detail can be specified.static enum
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(Node node, FilePosition outputStartPosition, 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)
-
Method Details
-
addMapping
-
appendTo
- Throws:
IOException
-
reset
public void reset() -
setStartingPosition
public void setStartingPosition(int offsetLine, int offsetIndex) -
setWrapperPrefix
-
validate
public void validate(boolean validate) -
setPrefixMappings
- Parameters:
sourceMapLocationMappings
-
-