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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Source maps can be very large different levels of detail can be specified.static enum
An enumeration of available source map formatsstatic interface
Function that mape a "destination" location to use within the source map.static class
Maintains a mapping from a given node to the position in the source code at which its generated form was placed.static final class
SimpleSourceMap.LocationMapping
that strips a prefix from a location. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(SourceMap.Mapping mapping) void
addMapping
(Node node, FilePosition outputStartPosition, FilePosition outputEndPosition) void
addSourceFile
(String name, String code) void
appendTo
(Appendable out, String name) void
reset()
void
setPrefixMappings
(List<? extends SourceMap.LocationMapping> sourceMapLocationMappings) void
setSourceFileMapping
(SourceFileMapping mapping) void
setStartingPosition
(int offsetLine, int offsetIndex) void
setWrapperPrefix
(String prefix) void
validate
(boolean validate)
-
Method Details
-
addMapping
-
addMapping
-
addSourceFile
-
appendTo
- Throws:
IOException
-
reset
public void reset() -
setStartingPosition
public void setStartingPosition(int offsetLine, int offsetIndex) -
setWrapperPrefix
-
validate
public void validate(boolean validate) -
setPrefixMappings
-
setSourceFileMapping
-