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
        pc - the pc (program counter) of the assembled file
        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
        line - the line number of the source file
        the list of PCs that line generated or empty array if not found