Merge pull request #3653 from ethereum/docNegativeSourceIndex

Document the meaning of sourceIndex "-1" in source mappings.
This commit is contained in:
chriseth
2018-03-06 09:28:53 +01:00
committed by GitHub
+5
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: