From 96db6cf905d0585530a63a7a64af3d95d088f8b8 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 20 Jan 2015 17:41:09 +0100 Subject: Style changes. --- AST.h | 3 ++- CallGraph.cpp | 2 +- Parser.cpp | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AST.h b/AST.h index 97ff30cf..754e9254 100755 --- a/AST.h +++ b/AST.h @@ -280,7 +280,8 @@ class FunctionDefinition: public Declaration { public: FunctionDefinition(Location const& _location, ASTPointer const& _name, - bool _isPublic, bool _isConstructor, + bool _isPublic, + bool _isConstructor, ASTPointer const& _documentation, ASTPointer const& _parameters, bool _isDeclaredConst, diff --git a/CallGraph.cpp b/CallGraph.cpp index 8766114f..a671796b 100644 --- a/CallGraph.cpp +++ b/CallGraph.cpp @@ -58,7 +58,7 @@ bool CallGraph::visit(Identifier const& _identifier) { if (m_overrideResolver) fun = (*m_overrideResolver)(fun->getName()); - solAssert(fun, ""); + solAssert(fun, "Error finding override for function " + fun->getName()); addFunction(*fun); } return true; diff --git a/Parser.cpp b/Parser.cpp index fb864072..fcabdb29 100644 --- a/Parser.cpp +++ b/Parser.cpp @@ -112,9 +112,9 @@ ASTPointer Parser::parseImportDirective() ASTPointer Parser::parseContractDefinition() { ASTNodeFactory nodeFactory(*this); - ASTPointer docstring; + ASTPointer docString; if (m_scanner->getCurrentCommentLiteral() != "") - docstring = make_shared(m_scanner->getCurrentCommentLiteral()); + docString = make_shared(m_scanner->getCurrentCommentLiteral()); expectToken(Token::CONTRACT); ASTPointer name = expectIdentifierToken(); vector> baseContracts; @@ -157,7 +157,7 @@ ASTPointer Parser::parseContractDefinition() } nodeFactory.markEndPosition(); expectToken(Token::RBRACE); - return nodeFactory.createNode(name, docstring, baseContracts, structs, + return nodeFactory.createNode(name, docString, baseContracts, structs, stateVariables, functions); } -- cgit v1.2.3