From add986744075139cfc0d034b195222c00a90d37c Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 28 Sep 2020 15:38:28 +0200 Subject: [PATCH] Document generated sources. --- docs/using-the-compiler.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/using-the-compiler.rst b/docs/using-the-compiler.rst index 93ef64fbf..0f6d41b4f 100644 --- a/docs/using-the-compiler.rst +++ b/docs/using-the-compiler.rst @@ -314,6 +314,7 @@ Input Description // evm.bytecode.opcodes - Opcodes list // evm.bytecode.sourceMap - Source mapping (useful for debugging) // evm.bytecode.linkReferences - Link references (if unlinked object) + // evm.bytecode.generatedSources - Sources generated by the compiler // evm.deployedBytecode* - Deployed bytecode (has all the options that evm.bytecode has) // evm.deployedBytecode.immutableReferences - Map from AST ids to bytecode ranges that reference immutables // evm.methodIdentifiers - The list of function hashes @@ -427,6 +428,18 @@ Output Description "opcodes": "", // The source mapping as a string. See the source mapping definition. "sourceMap": "", + // Array of sources generated by the compiler. Currently only + // contains a single Yul file. + "generatedSources": [{ + // Yul AST + "ast": { ... } + // Source file in its text form (may contain comments) + "contents":"{ function abi_decode(start, end) -> data { data := calldataload(start) } }", + // Source file ID, used for source references, same "namespace" as the Solidity source files + "id": 2, + "language": "Yul", + "name": "#utility.yul" + }] // If given, this is an unlinked object. "linkReferences": { "libraryFile.sol": {