aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/AsmScopeFiller.h
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-11-21 19:42:34 +0800
committerChristian Parpart <christian@ethereum.org>2018-11-23 21:29:00 +0800
commitec47c8946ba5f78563b7eca2512b3cee68db45b4 (patch)
tree58216cdbf00dba9a61135d85b289ce2af9fc2974 /libyul/AsmScopeFiller.h
parent3734f40d315439f8a791967a6adfda8cf9fd1e55 (diff)
downloaddexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.tar
dexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.tar.gz
dexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.tar.bz2
dexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.tar.lz
dexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.tar.xz
dexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.tar.zst
dexon-solidity-ec47c8946ba5f78563b7eca2512b3cee68db45b4.zip
Isolating libyul library API into its own namespace `yul`.
Diffstat (limited to 'libyul/AsmScopeFiller.h')
-rw-r--r--libyul/AsmScopeFiller.h40
1 files changed, 17 insertions, 23 deletions
diff --git a/libyul/AsmScopeFiller.h b/libyul/AsmScopeFiller.h
index fbd65bba..e8fb88d5 100644
--- a/libyul/AsmScopeFiller.h
+++ b/libyul/AsmScopeFiller.h
@@ -33,11 +33,7 @@ class ErrorReporter;
struct SourceLocation;
}
-namespace dev
-{
-namespace solidity
-{
-namespace assembly
+namespace yul
{
struct TypedName;
@@ -53,21 +49,21 @@ class ScopeFiller: public boost::static_visitor<bool>
public:
ScopeFiller(AsmAnalysisInfo& _info, langutil::ErrorReporter& _errorReporter);
- bool operator()(assembly::Instruction const&) { return true; }
- bool operator()(assembly::Literal const&) { return true; }
- bool operator()(assembly::Identifier const&) { return true; }
- bool operator()(assembly::FunctionalInstruction const&) { return true; }
- bool operator()(assembly::ExpressionStatement const& _expr);
- bool operator()(assembly::Label const& _label);
- bool operator()(assembly::StackAssignment const&) { return true; }
- bool operator()(assembly::Assignment const&) { return true; }
- bool operator()(assembly::VariableDeclaration const& _variableDeclaration);
- bool operator()(assembly::FunctionDefinition const& _functionDefinition);
- bool operator()(assembly::FunctionCall const&) { return true; }
- bool operator()(assembly::If const& _if);
- bool operator()(assembly::Switch const& _switch);
- bool operator()(assembly::ForLoop const& _forLoop);
- bool operator()(assembly::Block const& _block);
+ bool operator()(Instruction const&) { return true; }
+ bool operator()(Literal const&) { return true; }
+ bool operator()(Identifier const&) { return true; }
+ bool operator()(FunctionalInstruction const&) { return true; }
+ bool operator()(ExpressionStatement const& _expr);
+ bool operator()(Label const& _label);
+ bool operator()(StackAssignment const&) { return true; }
+ bool operator()(Assignment const&) { return true; }
+ bool operator()(VariableDeclaration const& _variableDeclaration);
+ bool operator()(FunctionDefinition const& _functionDefinition);
+ bool operator()(FunctionCall const&) { return true; }
+ bool operator()(If const& _if);
+ bool operator()(Switch const& _switch);
+ bool operator()(ForLoop const& _forLoop);
+ bool operator()(Block const& _block);
private:
bool registerVariable(
@@ -76,7 +72,7 @@ private:
Scope& _scope
);
- Scope& scope(assembly::Block const* _block);
+ Scope& scope(Block const* _block);
Scope* m_currentScope = nullptr;
AsmAnalysisInfo& m_info;
@@ -84,5 +80,3 @@ private:
};
}
-}
-}