Class SourceMap


  • public class SourceMap
    extends Object
    SourceMap class provides parser for source map from algod compile endpoint
    • Method Detail

      • getLineForPc

        public Integer getLineForPc​(Integer pc)
        Returns the Integer line number for the passed PC or null if not found
        Parameters:
        pc - the pc (program counter) of the assembled file
        Returns:
        the line number or null if not found
      • getPcsForLine

        public ArrayList<Integer> getPcsForLine​(Integer line)
        Returns the List of PCs for the passed line number
        Parameters:
        line - the line number of the source file
        Returns:
        the list of PCs that line generated or empty array if not found