aboutsummaryrefslogtreecommitdiffstats
path: root/NameAndTypeResolver.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-17 05:49:45 +0800
committerChristian <c@ethdev.com>2014-10-17 18:37:51 +0800
commita7f9815c0f68a7cb9571193ded851fbedb418422 (patch)
tree09adba8ef0aa273f5a84251ed53662b7d7fe3972 /NameAndTypeResolver.cpp
parent8a506b505f4725e8a76bbad8399562099e4510c3 (diff)
downloaddexon-solidity-a7f9815c0f68a7cb9571193ded851fbedb418422.tar.gz
dexon-solidity-a7f9815c0f68a7cb9571193ded851fbedb418422.tar.zst
dexon-solidity-a7f9815c0f68a7cb9571193ded851fbedb418422.zip
Coding style and cleanup
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r--NameAndTypeResolver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp
index ada987b0..628d9476 100644
--- a/NameAndTypeResolver.cpp
+++ b/NameAndTypeResolver.cpp
@@ -42,18 +42,18 @@ void NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract)
DeclarationRegistrationHelper registrar(m_scopes, _contract);
m_currentScope = &m_scopes[&_contract];
//@todo structs
- for (ptr<VariableDeclaration> const & variable : _contract.getStateVariables())
+ for (ptr<VariableDeclaration> const& variable: _contract.getStateVariables())
ReferencesResolver resolver(*variable, *this, nullptr);
- for (ptr<FunctionDefinition> const & function : _contract.getDefinedFunctions())
+ for (ptr<FunctionDefinition> const& function: _contract.getDefinedFunctions())
{
m_currentScope = &m_scopes[function.get()];
ReferencesResolver referencesResolver(*function, *this,
function->getReturnParameterList().get());
}
- // First, all function parameter types need to be resolved before we can check
+ // First, the parameter types of all functions need to be resolved before we can check
// the types, since it is possible to call functions that are only defined later
// in the source.
- for (ptr<FunctionDefinition> const & function : _contract.getDefinedFunctions())
+ for (ptr<FunctionDefinition> const& function: _contract.getDefinedFunctions())
{
m_currentScope = &m_scopes[function.get()];
function->getBody().checkTypeRequirements();