From ddb5111d3e959f4643fbc91751ec329e43b5db17 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 7 Dec 2014 09:46:21 +0100 Subject: [PATCH] Comments and braces. --- libsolidity/GlobalContext.h | 3 ++- test/solidityNameAndTypeResolution.cpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libsolidity/GlobalContext.h b/libsolidity/GlobalContext.h index fc3914d2a..ddbd049c2 100644 --- a/libsolidity/GlobalContext.h +++ b/libsolidity/GlobalContext.h @@ -49,8 +49,9 @@ public: void setCurrentContract(ContractDefinition const& _contract); MagicVariableDeclaration* getCurrentThis() const; + /// @returns all magic variables. std::vector getMagicVariables() const; - /// Returns a vector of all magic variables, excluding "this". + /// @returns a vector of all implicit global declarations excluding "this". std::vector getDeclarations() const; private: diff --git a/test/solidityNameAndTypeResolution.cpp b/test/solidityNameAndTypeResolution.cpp index 74af19b8f..783972296 100644 --- a/test/solidityNameAndTypeResolution.cpp +++ b/test/solidityNameAndTypeResolution.cpp @@ -46,9 +46,7 @@ void parseTextAndResolveNames(std::string const& _source) resolver.registerDeclarations(*sourceUnit); for (ASTPointer const& node: sourceUnit->getNodes()) if (ContractDefinition* contract = dynamic_cast(node.get())) - { resolver.resolveNamesAndTypes(*contract); - } } }