aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-03-06 11:32:48 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2015-03-08 22:50:53 +0800
commitddcfd441f304e02203f9fbed2477d69d3e48328f (patch)
tree019aef40a07d8be4eb2aee02b5836090c923eada
parent3b9b71e0ae86cc20c6a0201b027bd45bee4257e5 (diff)
downloaddexon-solidity-ddcfd441f304e02203f9fbed2477d69d3e48328f.tar.gz
dexon-solidity-ddcfd441f304e02203f9fbed2477d69d3e48328f.tar.zst
dexon-solidity-ddcfd441f304e02203f9fbed2477d69d3e48328f.zip
remove debug stuff
-rw-r--r--AST.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/AST.cpp b/AST.cpp
index 428c82f2..2aa57d7e 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -493,14 +493,10 @@ void VariableDeclarationStatement::checkTypeRequirements()
if (m_variable->getValue())
{
if (m_variable->getType())
- {
- std::cout << "getType() ok" << std::endl;
m_variable->getValue()->expectType(*m_variable->getType());
- }
else
{
// no type declared and no previous assignment, infer the type
- std::cout << "here's where called...." << std::endl;
Identifier* identifier = dynamic_cast<Identifier*>(m_variable->getValue().get());
if (identifier)
identifier->checkTypeRequirementsFromVariableDeclaration();
@@ -804,14 +800,9 @@ void Identifier::checkTypeRequirementsFromVariableDeclaration()
void Identifier::checkTypeRequirements()
{
- // var x = f; TODO!
solAssert(m_referencedDeclaration, "Identifier not resolved.");
m_isLValue = m_referencedDeclaration->isLValue();
- if (m_isLValue)
- std::cout << "Identifier: " << string(getName()) << " -> true" << std::endl;
- else
- std::cout << "Identifier: " << string(getName()) << " -> true" << std::endl;
m_type = m_referencedDeclaration->getType(m_currentContract);
if (!m_type)
BOOST_THROW_EXCEPTION(createTypeError("Declaration referenced before type could be determined."));
@@ -846,7 +837,6 @@ void Identifier::overloadResolution(FunctionCall const& _functionCall)
})))
possibles.push_back(declaration);
}
- std::cout << "possibles: " << possibles.size() << std::endl;
if (possibles.empty())
BOOST_THROW_EXCEPTION(createTypeError("Can't resolve identifier"));
else if (std::none_of(possibles.cbegin() + 1, possibles.cend(),
@@ -859,11 +849,9 @@ void Identifier::overloadResolution(FunctionCall const& _functionCall)
BOOST_THROW_EXCEPTION(createTypeError("Can't resolve identifier"));
}
else
- {
// named arguments
// TODO: don't support right now
- // BOOST_THROW_EXCEPTION(createTypeError("Named arguments with overloaded functions are not supported yet."));
- }
+ BOOST_THROW_EXCEPTION(createTypeError("Named arguments with overloaded functions are not supported yet."));
}
void ElementaryTypeNameExpression::checkTypeRequirements()