Skip to main content

Type Definition

Object representing Solidity source map that maps bytecode positions to source code locations.

Quick Reference

API Methods

Constructors

Access

Conversion

Usage Patterns

Debugging Contract Execution

Error Location Mapping

Coverage Analysis

Source Map Format

Solidity source maps use semicolon-separated entries:
Where:
  • s: Start byte offset in source
  • l: Length in bytes
  • f: File index (0-based)
  • j: Jump type (i = into, o = out, - = regular)
  • m: Modifier depth (optional)

Compression

Empty fields inherit from previous entry:
Second entry inherits start (0) and length (50), changes file to 1 and jump to i.

Jump Types

  • -: Regular instruction (no jump)
  • i: Jump into function/modifier (JUMP)
  • o: Jump out of function/modifier (return)

Specification