aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-20 01:53:39 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-21 02:38:00 +0800
commit6ae7a87b789d9ed60360ab9b7fa6593f9ab3b5ff (patch)
treef58811101d87cbd950733c977b0ef00e00e6827e
parenta24ac2f285e5c5602a23e825a75e12f4409ffdf9 (diff)
downloaddexon-solidity-6ae7a87b789d9ed60360ab9b7fa6593f9ab3b5ff.tar.gz
dexon-solidity-6ae7a87b789d9ed60360ab9b7fa6593f9ab3b5ff.tar.zst
dexon-solidity-6ae7a87b789d9ed60360ab9b7fa6593f9ab3b5ff.zip
Rename ast to legacyAST in StandardCompiler
-rw-r--r--docs/using-the-compiler.rst11
-rw-r--r--libsolidity/interface/StandardCompiler.cpp2
2 files changed, 8 insertions, 5 deletions
diff --git a/docs/using-the-compiler.rst b/docs/using-the-compiler.rst
index 1cc1f2b8..9e9a5eb6 100644
--- a/docs/using-the-compiler.rst
+++ b/docs/using-the-compiler.rst
@@ -121,7 +121,8 @@ Input Description
//
// The available output types are as follows:
// abi - ABI
- // ast - AST of all source files
+ // ast - AST of all source files (not supported atm)
+ // legacyAST - legacy AST of all source files
// why3 - Why3 translated output
// devdoc - Developer documentation (natspec)
// userdoc - User documentation (natspec)
@@ -155,9 +156,9 @@ Input Description
"*": {
"*": [ "evm.sourceMap" ]
},
- // Enable the AST and Why3 output of every single file.
+ // Enable the legacy AST and Why3 output of every single file.
"*": {
- "": [ "ast", "why3" ]
+ "": [ "legacyAST", "why3" ]
}
}
}
@@ -197,7 +198,9 @@ Output Description
// Identifier (used in source maps)
id: 1,
// The AST object
- ast: {}
+ ast: {},
+ // The legacy AST object
+ legacyAST: {}
}
},
// This contains the contract-level outputs. It can be limited/filtered by the outputSelection settings.
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 3cff319f..db89e16c 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -301,7 +301,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
{
Json::Value sourceResult = Json::objectValue;
sourceResult["id"] = sourceIndex++;
- sourceResult["ast"] = ASTJsonConverter(m_compilerStack.ast(source), m_compilerStack.sourceIndices()).json();
+ sourceResult["legacyAST"] = ASTJsonConverter(m_compilerStack.ast(source), m_compilerStack.sourceIndices()).json();
output["sources"][source] = sourceResult;
}