Document the meaning of sourceIndex "-1" in source mappings.

This commit is contained in:
Daniel Kirchner 2018-03-06 00:59:34 +01:00
parent 41ea502f0e
commit 154fd1d6cb

View File

@ -192,6 +192,11 @@ These are regular array indices into a list of source files usually called
``"sourceList"``, which is part of the combined-json and the output of
the json / npm compiler.
.. note ::
In the case of instructions that are not associated with any particular source file,
the source mapping assigns an integer identifier of ``-1``. This may happen for
bytecode sections stemming from compiler-generated inline assembly statements.
The source mappings inside the AST use the following
notation: