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 Type
    Method
    Description
    @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.
  • 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. Returns null if the source file does not have a input map, and returns OriginalMapping.getDefaultInstance() if the input map does not map the location.
      Parameters:
      lineNo - The line number, 1-based.
      columnNo - The column index, 1-based.