Package com.google.javascript.jscomp
Interface SourceFileMapping
- All Known Implementing Classes:
Compiler
public interface SourceFileMapping
A SourceFileMapping maps a source file, line, and column into an
Mapping.OriginalMapping.- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.google.debugging.sourcemap.proto.Mapping.OriginalMappinggetSourceMapping(String fileName, int lineNo, int columnNo) Returns the original mapping for the file name, line number and column position found in the source map.
-
Method Details
-
getSourceMapping
@Nullable com.google.debugging.sourcemap.proto.Mapping.OriginalMapping getSourceMapping(String fileName, int lineNo, int columnNo) Returns the original mapping for the file name, line number and column position found in the source map. Returnsnullif the source file does not have a input map, and returnsOriginalMapping.getDefaultInstance()if the input map does not map the location.- Parameters:
lineNo- The line number, 1-based.columnNo- The column index, 1-based.
-