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 enumSource maps can be very large different levels of detail can be specified.static enumAn enumeration of available source map formatsstatic interfaceFunction that mape a "destination" location to use within the source map.static classMaintains a mapping from a given node to the position in the source code at which its generated form was placed.static final classSimpleSourceMap.LocationMappingthat strips a prefix from a location. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(SourceMap.Mapping mapping) voidaddMapping(Node node, FilePosition outputStartPosition, FilePosition outputEndPosition) voidaddSourceFile(String name, String code) voidappendTo(Appendable out, String name) voidreset()voidsetPrefixMappings(List<? extends SourceMap.LocationMapping> sourceMapLocationMappings) voidsetSourceFileMapping(SourceFileMapping mapping) voidsetStartingPosition(int offsetLine, int offsetIndex) voidsetWrapperPrefix(String prefix) voidvalidate(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
-