diff options
author | chriseth <chris@ethereum.org> | 2018-12-11 22:35:32 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-11 22:48:12 +0800 |
commit | 2f04633e272c0fb14d2fcf04270f6457f11c928b (patch) | |
tree | 58c3ecc22ea89ccc60a04459e182bbc6c269a89e /docs | |
parent | fe87cc7eb0508a7330b90c72f4dbc260948d6b43 (diff) | |
download | dexon-solidity-2f04633e272c0fb14d2fcf04270f6457f11c928b.tar.gz dexon-solidity-2f04633e272c0fb14d2fcf04270f6457f11c928b.tar.zst dexon-solidity-2f04633e272c0fb14d2fcf04270f6457f11c928b.zip |
Explain source IDs.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/miscellaneous.rst | 6 | ||||
-rw-r--r-- | docs/using-the-compiler.rst | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index 017d5b81..5a6f3875 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -224,9 +224,9 @@ for displaying the current position in the source code inside a debugger or for breakpoint handling. Both kinds of source mappings use integer identifiers to refer to source files. -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. +The identifier of a source file is stored in +``output['sources'][sourceName]['id']`` where ``output`` is the output of the +standard-json compiler interface parsed as JSON. .. note :: In the case of instructions that are not associated with any particular source file, diff --git a/docs/using-the-compiler.rst b/docs/using-the-compiler.rst index 016ea6e9..4749ef1f 100644 --- a/docs/using-the-compiler.rst +++ b/docs/using-the-compiler.rst @@ -293,7 +293,7 @@ Output Description // This contains the file-level outputs. In can be limited/filtered by the outputSelection settings. sources: { "sourceFile.sol": { - // Identifier (used in source maps) + // Identifier of the source (used in source maps) id: 1, // The AST object ast: {}, |