diff options
author | LianaHus <liana@ethdev.com> | 2015-09-08 20:30:21 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-08 20:30:21 +0800 |
commit | df8c82bc60f4d9238635082f9a9f41a45b5e2b98 (patch) | |
tree | f52b1582b3f532e3b8fcdc91f85ede89e21e8510 /solc/CommandLineInterface.cpp | |
parent | 02d4198242ec3dacc7af31c9446c83adcf014de9 (diff) | |
download | dexon-solidity-df8c82bc60f4d9238635082f9a9f41a45b5e2b98.tar.gz dexon-solidity-df8c82bc60f4d9238635082f9a9f41a45b5e2b98.tar.zst dexon-solidity-df8c82bc60f4d9238635082f9a9f41a45b5e2b98.zip |
- renamed AST to ast and ABI to abi
- style fixes
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 3ce6a2d9..6a90c69f 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -522,7 +522,7 @@ void CommandLineInterface::handleCombinedJSON() output["sources"] = Json::Value(Json::objectValue); for (auto const& sourceCode: m_sourceCodes) { - ASTJsonConverter converter(m_compiler->AST(sourceCode.first)); + ASTJsonConverter converter(m_compiler->ast(sourceCode.first)); output["sources"][sourceCode.first] = Json::Value(Json::objectValue); output["sources"][sourceCode.first]["AST"] = converter.json(); } @@ -546,7 +546,7 @@ void CommandLineInterface::handleAst(string const& _argStr) { vector<ASTNode const*> asts; for (auto const& sourceCode: m_sourceCodes) - asts.push_back(&m_compiler->AST(sourceCode.first)); + asts.push_back(&m_compiler->ast(sourceCode.first)); map<ASTNode const*, eth::GasMeter::GasConsumption> gasCosts; if (m_compiler->runtimeAssemblyItems()) gasCosts = GasEstimator::breakToStatementLevel( @@ -562,12 +562,12 @@ void CommandLineInterface::handleAst(string const& _argStr) string postfix = ""; if (_argStr == g_argAstStr) { - ASTPrinter printer(m_compiler->AST(sourceCode.first), sourceCode.second); + ASTPrinter printer(m_compiler->ast(sourceCode.first), sourceCode.second); printer.print(data); } else { - ASTJsonConverter converter(m_compiler->AST(sourceCode.first)); + ASTJsonConverter converter(m_compiler->ast(sourceCode.first)); converter.print(data); postfix += "_json"; } @@ -584,7 +584,7 @@ void CommandLineInterface::handleAst(string const& _argStr) if (_argStr == g_argAstStr) { ASTPrinter printer( - m_compiler->AST(sourceCode.first), + m_compiler->ast(sourceCode.first), sourceCode.second, gasCosts ); @@ -592,7 +592,7 @@ void CommandLineInterface::handleAst(string const& _argStr) } else { - ASTJsonConverter converter(m_compiler->AST(sourceCode.first)); + ASTJsonConverter converter(m_compiler->ast(sourceCode.first)); converter.print(cout); } } |