mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #9913 from ethereum/documentGeneratedSources
Document generated sources.
This commit is contained in:
commit
e18c445c20
@ -314,6 +314,7 @@ Input Description
|
|||||||
// evm.bytecode.opcodes - Opcodes list
|
// evm.bytecode.opcodes - Opcodes list
|
||||||
// evm.bytecode.sourceMap - Source mapping (useful for debugging)
|
// evm.bytecode.sourceMap - Source mapping (useful for debugging)
|
||||||
// evm.bytecode.linkReferences - Link references (if unlinked object)
|
// 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* - Deployed bytecode (has all the options that evm.bytecode has)
|
||||||
// evm.deployedBytecode.immutableReferences - Map from AST ids to bytecode ranges that reference immutables
|
// evm.deployedBytecode.immutableReferences - Map from AST ids to bytecode ranges that reference immutables
|
||||||
// evm.methodIdentifiers - The list of function hashes
|
// evm.methodIdentifiers - The list of function hashes
|
||||||
@ -427,6 +428,18 @@ Output Description
|
|||||||
"opcodes": "",
|
"opcodes": "",
|
||||||
// The source mapping as a string. See the source mapping definition.
|
// The source mapping as a string. See the source mapping definition.
|
||||||
"sourceMap": "",
|
"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.
|
// If given, this is an unlinked object.
|
||||||
"linkReferences": {
|
"linkReferences": {
|
||||||
"libraryFile.sol": {
|
"libraryFile.sol": {
|
||||||
|
Loading…
Reference in New Issue
Block a user