Browse Source

Comments and braces.

cl-refactor
Christian 10 years ago
parent
commit
ddb5111d3e
  1. 3
      libsolidity/GlobalContext.h
  2. 2
      test/solidityNameAndTypeResolution.cpp

3
libsolidity/GlobalContext.h

@ -49,8 +49,9 @@ public:
void setCurrentContract(ContractDefinition const& _contract);
MagicVariableDeclaration* getCurrentThis() const;
/// @returns all magic variables.
std::vector<MagicVariableDeclaration const*> getMagicVariables() const;
/// Returns a vector of all magic variables, excluding "this".
/// @returns a vector of all implicit global declarations excluding "this".
std::vector<Declaration*> getDeclarations() const;
private:

2
test/solidityNameAndTypeResolution.cpp

@ -46,9 +46,7 @@ void parseTextAndResolveNames(std::string const& _source)
resolver.registerDeclarations(*sourceUnit);
for (ASTPointer<ASTNode> const& node: sourceUnit->getNodes())
if (ContractDefinition* contract = dynamic_cast<ContractDefinition*>(node.get()))
{
resolver.resolveNamesAndTypes(*contract);
}
}
}

Loading…
Cancel
Save