From bc609c55c0fa622a68fa9718c55046416c201b1d Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 5 Oct 2015 17:19:23 +0200 Subject: Compute canonical names of types for function signatures. --- libsolidity/CompilerStack.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libsolidity/CompilerStack.cpp') diff --git a/libsolidity/CompilerStack.cpp b/libsolidity/CompilerStack.cpp index 6ee19d58..7d9ca32c 100644 --- a/libsolidity/CompilerStack.cpp +++ b/libsolidity/CompilerStack.cpp @@ -130,12 +130,15 @@ bool CompilerStack::parse() m_globalContext->setCurrentContract(*contract); resolver.updateDeclaration(*m_globalContext->currentThis()); TypeChecker typeChecker; - if (!typeChecker.checkTypeRequirements(*contract)) + if (typeChecker.checkTypeRequirements(*contract)) + { + contract->setDevDocumentation(interfaceHandler.devDocumentation(*contract)); + contract->setUserDocumentation(interfaceHandler.userDocumentation(*contract)); + } + else typesFine = false; - m_errors += typeChecker.errors(); - contract->setDevDocumentation(interfaceHandler.devDocumentation(*contract)); - contract->setUserDocumentation(interfaceHandler.userDocumentation(*contract)); m_contracts[contract->name()].contract = contract; + m_errors += typeChecker.errors(); } m_parseSuccessful = typesFine; return m_parseSuccessful; -- cgit